parent: don't kill child when profiling=True

issue510
David Wilson 5 years ago
parent fedd294f96
commit 2e4d7b15d7

@ -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

Loading…
Cancel
Save