[svn r63060] execnet really needs to improve its bootstrapping

--HG--
branch : trunk
This commit is contained in:
hpk 2009-03-19 10:56:40 +01:00
parent cfa0cf4cfe
commit a57836f1eb
1 changed files with 6 additions and 1 deletions

View File

@ -330,7 +330,12 @@ class Gateway(object):
self._cleanup.unregister(self)
self._stopexec()
self._stopsend()
py._com.pyplugins.notify("gateway_exit", self)
try:
py._com.pyplugins.notify("gateway_exit", self)
except NameError:
# on the remote side 'py' is not imported
# and so we can't notify (XXX: make execnet synchronous)
pass
def _stopsend(self):
self._send(None)