do_dispatch
[electrum-server.git] / transports / stratum_tcp.py
index 8f0c936..4bcefab 100644 (file)
@@ -12,7 +12,7 @@ class TcpSession(Session):
         Session.__init__(self)
         self._connection = connection
         self.address = address[0]
-        self.name = "TCP session"
+        self.name = "TCP"
 
     def connection(self):
         if self.stopped():
@@ -55,6 +55,8 @@ class TcpClientRequestor(threading.Thread):
             if not self.update():
                 break
 
+            self.session.time = time.time()
+
             while self.parse():
                 pass