Oops. Confused x.reverse() with reversed(x). Fixes #2674

This commit is contained in:
junglecow 2006-11-17 15:37:56 +00:00
parent 51de0d4bb7
commit cd10d1dbbe
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class NBCommonClient(CommonClient):
''' Called on disconnection. Calls disconnect handlers and cleans things up. '''
self.connected=''
self.DEBUG(self.DBG,'Disconnect detected','stop')
for i in self.disconnect_handlers.reverse():
for i in reversed(self.disconnect_handlers):
i()
if self.__dict__.has_key('NonBlockingRoster'):
self.NonBlockingRoster.PlugOut()