Skip to content
Snippets Groups Projects
Commit 82dba872 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-244: Detect if threads die on us.

parent e89fb747
No related branches found
No related tags found
1 merge request!56L2SS-244: Expose the SSTs in MPs
...@@ -63,6 +63,13 @@ class sst_client(CommClient): ...@@ -63,6 +63,13 @@ class sst_client(CommClient):
return super().connect() return super().connect()
def ping(self):
if not self.sst.isAlive():
raise Exception("SST thread died unexpectedly")
if not self.udp.isAlive():
raise Exception("UDP thread died unexpectedly")
def disconnect(self): def disconnect(self):
# explicit disconnect, instead of waiting for the GC to kick in after "del" below # explicit disconnect, instead of waiting for the GC to kick in after "del" below
self.sst.disconnect() self.sst.disconnect()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment