We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3975bbd commit 1c009f2Copy full SHA for 1c009f2
1 file changed
concore.py
@@ -1,6 +1,7 @@
1
import time
2
import logging
3
import os
4
+import atexit
5
from ast import literal_eval
6
import sys
7
import re
@@ -104,6 +105,8 @@ def terminate_zmq():
104
105
port.context.term()
106
except Exception as e:
107
logging.error(f"Error while terminating ZMQ port {port.address}: {e}")
108
+
109
+atexit.register(terminate_zmq)
110
# --- ZeroMQ Integration End ---
111
112
0 commit comments