mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-21 02:57:38 +03:00
Fix disconnect not working on python examples
This commit is contained in:
parent
e3bbe97406
commit
cb9816aa91
@ -209,8 +209,10 @@ def main():
|
||||
except zmq.ZMQError, e:
|
||||
echoLog('')
|
||||
echoLog('ZMQSocketException: ' + str(e))
|
||||
subscriber.disconnect(__relayEDDN)
|
||||
echoLog('Disconnect from ' + __relayEDDN)
|
||||
echoLog('')
|
||||
time.sleep(10)
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
|
||||
|
@ -43,7 +43,8 @@ def main():
|
||||
except zmq.ZMQError, e:
|
||||
print 'ZMQSocketException: ' + str(e)
|
||||
sys.stdout.flush()
|
||||
time.sleep(10)
|
||||
subscriber.disconnect(__relayEDDN)
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
|
||||
|
@ -209,8 +209,10 @@ def main():
|
||||
except zmq.ZMQError as e:
|
||||
echoLog('')
|
||||
echoLog('ZMQSocketException: ' + str(e))
|
||||
subscriber.disconnect(__relayEDDN)
|
||||
echoLog('Disconnect from ' + __relayEDDN)
|
||||
echoLog('')
|
||||
time.sleep(10)
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
|
||||
|
@ -43,7 +43,8 @@ def main():
|
||||
except zmq.ZMQError as e:
|
||||
print ('ZMQSocketException: ' + str(e))
|
||||
sys.stdout.flush()
|
||||
time.sleep(10)
|
||||
subscriber.disconnect(__relayEDDN)
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user