Commit 34362200 authored by Mike Perry's avatar Mike Perry
Browse files

Fix a spurious WARN in extra_data.py

parent add8b1f4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -127,6 +127,9 @@ class WriteStats(TorCtl.PostEventListener):
      # try to reuse this circuit later... But we should
      # print out a warn above if that happens.
      del self.all_circs[event.circ_id]
      # Some STREAM FAILED events are paired with a CLOSED, some are not :(
      if event.status == "FAILED":
        self.ignore_streams[event.strm_id] = True
    if event.status == 'CLOSED':
      assert not circ.strm_id or circ.stream_failed
      circ.used = True