[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r18054: {torctl} Fix exception on removing unattached, pending streams from d (torctl/trunk/python/TorCtl)



Author: mikeperry
Date: 2009-01-09 18:14:44 -0500 (Fri, 09 Jan 2009)
New Revision: 18054

Modified:
   torctl/trunk/python/TorCtl/PathSupport.py
Log:

Fix exception on removing unattached, pending streams from
discarded circuits.



Modified: torctl/trunk/python/TorCtl/PathSupport.py
===================================================================
--- torctl/trunk/python/TorCtl/PathSupport.py	2009-01-09 23:07:56 UTC (rev 18053)
+++ torctl/trunk/python/TorCtl/PathSupport.py	2009-01-09 23:14:44 UTC (rev 18054)
@@ -1088,7 +1088,7 @@
              +" with "+str(len(self.circuits[key].pending_streams))
              +" pending streams")
           unattached_streams.extend(self.circuits[key].pending_streams)
-          self.circuits[key].pending_streams.clear()
+          self.circuits[key].pending_streams = []
         # FIXME: Consider actually closing circ if no streams.
         self.circuits[key].dirty = True