Fix dangling warning for test_multiprocessing

This commit is contained in:
Richard Oudkerk 2012-05-03 18:29:02 +01:00
parent bf4e266397
commit a6becaa9cb
2 changed files with 7 additions and 1 deletions

View file

@ -548,7 +548,10 @@ class BaseManager(object):
'''
Join the manager process (if it has been spawned)
'''
self._process.join(timeout)
if self._process is not None:
self._process.join(timeout)
if not self._process.is_alive():
self._process = None
def _debug_info(self):
'''