git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
5824841
)
fix another memory leak
author
ThomasV
<thomasv@gitorious>
Mon, 25 Nov 2013 14:25:47 +0000 (18:25 +0400)
committer
ThomasV
<thomasv@gitorious>
Mon, 25 Nov 2013 14:25:47 +0000 (18:25 +0400)
processor.py
patch
|
blob
|
history
diff --git
a/processor.py
b/processor.py
index
ec62d48
..
0ad86ff
100644
(file)
--- a/
processor.py
+++ b/
processor.py
@@
-177,9
+177,14
@@
class RequestDispatcher(threading.Thread):
sessions = self.sessions[:]
active_sessions = []
+
now = time.time()
for session in sessions:
- if not session.stopped() and (now - session.time) < 1000:
+ if (now - session.time) > 1000:
+ session.stop()
+
+ for session in sessions:
+ if not session.stopped():
# If session is still alive then re-add it back
# to our internal register
active_sessions.append(session)