Fix disconnect not working on python examples

This commit is contained in:
AnthorNet 2015-06-08 07:43:03 +02:00
parent e3bbe97406
commit cb9816aa91
4 changed files with 10 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)