Commit 277aae15 authored by Alejandro De Maria Antolinos's avatar Alejandro De Maria Antolinos

It fixes #45

parents 48b60630 4a9592a9
......@@ -168,11 +168,11 @@ class StompClient():
except Exception as e:
# if the heartbeat failed we close the connection
# this put the client in the correct DISCONNECTED state
self.logger.warn("Missed a heartBeat. error=%s beamline=%s" % str(e.message, self.beamlineID))
try:
self.LOG.warn("Missed a heartBeat. beamline=%s" % str(self.beamlineID))
self.client.close(True)
except:
pass
pass
else:
self.logger.info("Heart beat changed, will disconnect")
self.client.disconnect()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment