I'm making a pyzmq app which uses the publisher-subscribe paradigm and it works fine as separate python scripts but I'd like to turn them into Python classes.
Seems to kinda work but when I setup the zeromq device in the controller class, I'm not able to cleanup the port and on next run I get the `Address already in use` error on startup. I believe that I'm not able to cleanup the device when I quit the controller. It may be quite simple:
how do I cleanup the Device object on a keyboard interrupt? I initiate the app from a run script:
Any help or suggestions would be great appreciated.
Michael