Changeset 98:c3b20ad2bb70 for wokkel/subprotocols.py
- Timestamp:
- Mar 7, 2011, 7:40:16 PM (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/subprotocols.py
r96 r98 11 11 12 12 from twisted.internet import defer 13 from twisted.python import log 13 from twisted.internet.error import ConnectionDone 14 from twisted.python import failure, log 14 15 from twisted.words.protocols.jabber import error, xmlstream 15 16 from twisted.words.protocols.jabber.xmlstream import toResponse … … 247 248 248 249 249 def _disconnected(self, _):250 def _disconnected(self, reason): 250 251 """ 251 252 Called when the stream has been closed. … … 258 259 self._initialized = False 259 260 261 # Twisted versions before 11.0 passed an XmlStream here. 262 if not hasattr(reason, 'trap'): 263 reason = failure.Failure(ConnectionDone()) 264 260 265 # Notify all child services which implement 261 266 # the IService interface 262 267 for e in self: 263 e.connectionLost( None)268 e.connectionLost(reason) 264 269 265 270
Note: See TracChangeset
for help on using the changeset viewer.