HOWTO: Recommend downloading, update index stats, point to step 10 in step 7
[electrum-server.git] / processor.py
index 9fa9378..ec62d48 100644 (file)
@@ -177,8 +177,9 @@ class RequestDispatcher(threading.Thread):
             sessions = self.sessions[:]
 
         active_sessions = []
+        now = time.time()
         for session in sessions:
-            if not session.stopped():
+            if not session.stopped() and (now - session.time) < 1000:
                 # If session is still alive then re-add it back
                 # to our internal register
                 active_sessions.append(session)