mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2026-07-21 11:13:16 -04:00
Actually terminates!
This commit is contained in:
Vendored
+3
-2
@@ -137,9 +137,10 @@ def main(addrs):
|
|||||||
print 'Interrupt received, flushing'
|
print 'Interrupt received, flushing'
|
||||||
|
|
||||||
while cli.taskmap:
|
while cli.taskmap:
|
||||||
|
for k, v in cli.taskmap.items():
|
||||||
|
if not v.getters:
|
||||||
|
cli.taskmap.pop(k)
|
||||||
print 'Still waiting on %d tasks...' % len(cli.taskmap)
|
print 'Still waiting on %d tasks...' % len(cli.taskmap)
|
||||||
for i in cli.taskmap.items():
|
|
||||||
print i
|
|
||||||
gevent.sleep(3)
|
gevent.sleep(3)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user