コード例 #1
0
 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
コード例 #2
0
 def onTimeout():
     d.errback(xmlstream.TimeoutError("Timeout waiting for response."))
コード例 #3
0
 def onTimeout():
     del self._iqDeferreds[element['id']]
     d.errback(xmlstream.TimeoutError("IQ timed out"))
コード例 #4
0
 def stopService(self):
     InternalComponent.stopService(self)
     iqDeferreds = self._iqDeferreds
     self._iqDeferreds = {}
     for d in iqDeferreds.itervalues():
         d.errback(xmlstream.TimeoutError("Shutting down"))