parent: don't kill child when profiling=True

This commit is contained in:
David Wilson 2019-01-26 20:16:28 +00:00
parent fedd294f96
commit 2e4d7b15d7
1 changed files with 4 additions and 0 deletions

View File

@ -1123,6 +1123,10 @@ class Stream(mitogen.core.Stream):
LOG.debug('%r: immediate child is detached, won\'t reap it', self)
return
if self.profiling:
LOG.info('%r: wont kill child because profiling=True', self)
return
if self._reaped:
# on_disconnect() may be invoked more than once, for example, if
# there is still a pending message to be sent after the first