Browse Source

re-add not-connected to handle some failure cases

Nick Mathewson 5 years ago
parent
commit
4c0e3f31df
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/chutney/Traffic.py

+ 1 - 0
lib/chutney/Traffic.py

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