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.
2 parents 32e2c47 + 1c009f2 commit ea6585eCopy full SHA for ea6585e
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
@@ -112,6 +113,8 @@ def terminate_zmq():
112
113
port.context.term()
114
except Exception as e:
115
logging.error(f"Error while terminating ZMQ port {port.address}: {e}")
116
+
117
+atexit.register(terminate_zmq)
118
# --- ZeroMQ Integration End ---
119
120
0 commit comments