Skip to content
Snippets Groups Projects
Commit e3f16266 authored by junglecow's avatar junglecow
Browse files

Remove NOOP calls to reverse(), and *actually* call handlers in reverse order

parent 94754649
No related branches found
No related tags found
No related merge requests found
......@@ -74,10 +74,8 @@ def disconnected(self):
''' Called on disconnection. Calls disconnect handlers and cleans things up. '''
self.connected=''
self.DEBUG(self.DBG,'Disconnect detected','stop')
self.disconnect_handlers.reverse()
for i in self.disconnect_handlers:
for i in self.disconnect_handlers.reverse():
i()
self.disconnect_handlers.reverse()
if self.__dict__.has_key('NonBlockingRoster'):
self.NonBlockingRoster.PlugOut()
if self.__dict__.has_key('NonBlockingBind'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment