Skip to content

Commit 08b3f66

Browse files
authored
Merge pull request #71 from mprahl/stomp-error-fix
Properly stop the Twisted Reactor when a STOMP error is encountered
2 parents 50c5636 + ac0dd06 commit 08b3f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: moksha.hub/moksha/hub/stomp/protocol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def error(self, msg):
102102
super(StompProtocol, self).error(msg)
103103
log.error("Requesting shutdown of hub for STOMP error.")
104104
reactor.callLater(0, self.client.hub.close)
105-
reactor.callLater(0, reactor.close)
105+
reactor.callLater(0, reactor.stop)
106106

107107
def ack(self, msg):
108108
""" Override stomper's own ack to be smarter, based on mode. """

0 commit comments

Comments
 (0)