Преглед на файлове

handle disconnected messages with lowest priority

When we can't keep up with the messages in the queue, we don't want to
talk to any additional peers.
Malte Kraus преди 8 години
родител
ревизия
80ecd7595b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/protocol.py

+ 1 - 1
src/protocol.py

@@ -114,7 +114,7 @@ class PeerConnection:
                 self.outgoing_msgs.get_nowait()
             self.outgoing_msgs.put(None)
             self.is_connected = False
-            self.proto.received("disconnected", None, self)
+            self.proto.received("disconnected", None, self, 3)
 
             self.socket.close()