diff --git a/lib/torrent2http/engine.py b/lib/torrent2http/engine.py index 1a99bf4..0b75555 100644 --- a/lib/torrent2http/engine.py +++ b/lib/torrent2http/engine.py @@ -482,6 +482,7 @@ class Engine: else: self._log("torrent2http successfully shut down.") self.wait_on_close_timeout = None + self.process.wait() self.started = False self.logpipe = None self.process = None