def onTimeout(): i = 0 for xd in self._deferreds: if d == xd: self._deferreds.pop(i) d.errback( xmlstream.TimeoutError( "Timeout waiting for response.")) i += 1
def onTimeout(): d.errback(xmlstream.TimeoutError("Timeout waiting for response."))
def onTimeout(): del self._iqDeferreds[element['id']] d.errback(xmlstream.TimeoutError("IQ timed out"))
def stopService(self): InternalComponent.stopService(self) iqDeferreds = self._iqDeferreds self._iqDeferreds = {} for d in iqDeferreds.itervalues(): d.errback(xmlstream.TimeoutError("Shutting down"))