Skip to content

Register terminate_zmq with atexit to cleanup sockets on exit#221

Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix-zmq-atexit
Feb 8, 2026
Merged

Register terminate_zmq with atexit to cleanup sockets on exit#221
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix-zmq-atexit

Conversation

@avinxshKD
Copy link

Added atexit.register(terminate_zmq) so ZMQ sockets get closed automatically when the script ends. Without this, sockets stay open if someone forgets to call it manually or the program crashes, causing "address already in use" errors on restart.

Fixes #203

@pradeeban pradeeban merged commit ea6585e into ControlCore-Project:dev Feb 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants