From 272812fd76458211ea9877f86cafec8281c36f29 Mon Sep 17 00:00:00 2001 From: hpk Date: Fri, 2 Feb 2007 02:07:37 +0100 Subject: [PATCH] [svn r37787] more precision at shutdown: first remove from the sendqueue, then trigger the queue to shutdown. (This is an attempt to get rid of the still appearing "exception in thread" messages) --HG-- branch : trunk --- py/execnet/gateway.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py/execnet/gateway.py b/py/execnet/gateway.py index 8387b1319..ac6b11041 100644 --- a/py/execnet/gateway.py +++ b/py/execnet/gateway.py @@ -275,11 +275,12 @@ class Gateway(object): ## self._exitlock.release() def exit(self): - self._outgoing.put(None) try: del _active_sendqueues[self._outgoing] except KeyError: pass + else: + self._outgoing.put(None) def join(self, joinexec=True): current = threading.currentThread()