Skip to content

Commit cf0571d

Browse files
authored
Fix atexit exception (#84)
1 parent cf82bea commit cf0571d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundled/tool/jsonrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def __init__(self):
131131
self._rpc: Dict[str, JsonRpc] = {}
132132
self._lock = threading.Lock()
133133
self._thread_pool = ThreadPoolExecutor(10)
134+
atexit.register(self.stop_all_processes)
134135

135-
@atexit.register
136136
def stop_all_processes(self):
137137
"""Send exit command to all processes and shutdown transport."""
138138
for i in self._rpc.values():

0 commit comments

Comments
 (0)