Solve unclosed socket connection on fail
This commit is contained in:
parent
96303c0de7
commit
8deb9c5178
@ -252,7 +252,11 @@ class SecondaryMonitor(Thread):
|
|||||||
self.lastpacket_timestamp = 0
|
self.lastpacket_timestamp = 0
|
||||||
|
|
||||||
self.start()
|
self.start()
|
||||||
|
try:
|
||||||
self.wait() # make sure we got some data before someone calls us
|
self.wait() # make sure we got some data before someone calls us
|
||||||
|
except TimeoutException as ex:
|
||||||
|
self.close()
|
||||||
|
raise ex
|
||||||
|
|
||||||
def send_program(self, prog):
|
def send_program(self, prog):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user