mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-07 10:53:04 +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:
|
except zmq.ZMQError, e:
|
||||||
echoLog('')
|
echoLog('')
|
||||||
echoLog('ZMQSocketException: ' + str(e))
|
echoLog('ZMQSocketException: ' + str(e))
|
||||||
|
subscriber.disconnect(__relayEDDN)
|
||||||
|
echoLog('Disconnect from ' + __relayEDDN)
|
||||||
echoLog('')
|
echoLog('')
|
||||||
time.sleep(10)
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,7 +43,8 @@ def main():
|
|||||||
except zmq.ZMQError, e:
|
except zmq.ZMQError, e:
|
||||||
print 'ZMQSocketException: ' + str(e)
|
print 'ZMQSocketException: ' + str(e)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
time.sleep(10)
|
subscriber.disconnect(__relayEDDN)
|
||||||
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -209,8 +209,10 @@ def main():
|
|||||||
except zmq.ZMQError as e:
|
except zmq.ZMQError as e:
|
||||||
echoLog('')
|
echoLog('')
|
||||||
echoLog('ZMQSocketException: ' + str(e))
|
echoLog('ZMQSocketException: ' + str(e))
|
||||||
|
subscriber.disconnect(__relayEDDN)
|
||||||
|
echoLog('Disconnect from ' + __relayEDDN)
|
||||||
echoLog('')
|
echoLog('')
|
||||||
time.sleep(10)
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,7 +43,8 @@ def main():
|
|||||||
except zmq.ZMQError as e:
|
except zmq.ZMQError as e:
|
||||||
print ('ZMQSocketException: ' + str(e))
|
print ('ZMQSocketException: ' + str(e))
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
time.sleep(10)
|
subscriber.disconnect(__relayEDDN)
|
||||||
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user