[or-cvs] Check for "CLOSE" noncallback callback

Nick Mathewson nickm at seul.org
Thu Nov 17 17:39:58 UTC 2005


Update of /home/or/cvsroot/control/python
In directory moria:/tmp/cvs-serv27718

Modified Files:
	TorCtl1.py 
Log Message:
Check for "CLOSE" noncallback callback

Index: TorCtl1.py
===================================================================
RCS file: /home/or/cvsroot/control/python/TorCtl1.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- TorCtl1.py	17 Nov 2005 17:34:17 -0000	1.16
+++ TorCtl1.py	17 Nov 2005 17:39:56 -0000	1.17
@@ -175,7 +175,8 @@
                 while 1:
                     try:
                         cb = self._queue.get(timeout=0)
-                        cb("EXCEPTION")
+                        if cb != "CLOSE":
+                            cb("EXCEPTION")
                     except Queue.Empty:
                         return
 



More information about the tor-commits mailing list