From: Forrest Voight Date: Mon, 2 Jul 2012 15:26:47 +0000 (-0400) Subject: remove deferral.sleep's canceller, as it wasn't used anywhere and caused incompatibil... X-Git-Tag: 3.2~21 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=b3a4925e7eb1e99ce6e304fc10b60dfc16fb5ee7;hp=8ac4b829efecf0b3a2e986d64d7faad3cc0adc06 remove deferral.sleep's canceller, as it wasn't used anywhere and caused incompatibilities with older Twisted versions --- diff --git a/p2pool/util/deferral.py b/p2pool/util/deferral.py index 3104809..6f75b76 100644 --- a/p2pool/util/deferral.py +++ b/p2pool/util/deferral.py @@ -8,8 +8,8 @@ from twisted.internet import defer, reactor from twisted.python import failure, log def sleep(t): - d = defer.Deferred(canceller=lambda d_: dc.cancel()) - dc = reactor.callLater(t, d.callback, None) + d = defer.Deferred() + reactor.callLater(t, d.callback, None) return d def run_repeatedly(f, *args, **kwargs):