Explorar el Código

re-add not-connected to handle some failure cases

Nick Mathewson hace 7 años
padre
commit
4c0e3f31df
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      lib/chutney/Traffic.py

+ 1 - 0
lib/chutney/Traffic.py

@@ -227,6 +227,7 @@ class CloseSourceProducer:
 class Source(asynchat.async_chat):
     """A data source, connecting to a TCP server, optionally over a
     SOCKS proxy, sending data."""
+    NOT_CONNECTED = 0
     CONNECTING = 1
     CONNECTING_THROUGH_PROXY = 2
     CONNECTED = 5