git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
8ac4b82
)
remove deferral.sleep's canceller, as it wasn't used anywhere and caused incompatibil...
author
Forrest Voight
<forrest@forre.st>
Mon, 2 Jul 2012 15:26:47 +0000 (11:26 -0400)
committer
Forrest Voight
<forrest@forre.st>
Mon, 2 Jul 2012 15:26:47 +0000 (11:26 -0400)
p2pool/util/deferral.py
patch
|
blob
|
history
diff --git
a/p2pool/util/deferral.py
b/p2pool/util/deferral.py
index
3104809
..
6f75b76
100644
(file)
--- 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):