From 466f325b88ca940f0190d83907fccb0435196f1d Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 6 Aug 2014 04:03:16 +0200 Subject: [PATCH] fix peers script --- scripts/peers | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/peers b/scripts/peers index 2a0f99aff..5888993a7 100755 --- a/scripts/peers +++ b/scripts/peers @@ -26,16 +26,17 @@ i.stop() print "Contacting %d servers"%len(peers) # start interfaces +q2 = Queue.Queue() config = SimpleConfig() interfaces = map ( lambda server: Interface(server, config), peers ) reached_servers = [] for i in interfaces: - i.start(q) + i.start(q2) t0 = time.time() while peers: try: - i, r = q.get(timeout=1) + i, r = q2.get(timeout=1) except: if time.time() - t0 > 10: print "timeout"