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

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



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