resume should put the stream into wait as done usually on get calls

This commit is contained in:
Victor Shyba 2019-02-13 20:41:57 -03:00 committed by Lex Berezhny
parent bbdc96e762
commit 5c1ab42277

View file

@ -161,7 +161,7 @@ class StreamManager:
else:
log.warning("no DHT node given, resuming downloads trusting that we can contact reflector")
t = [
stream.start_download(self.node)
(stream.start_download(self.node), self.wait_for_stream_finished(stream))
for stream in self.streams if stream.status == ManagedStream.STATUS_RUNNING
]
if t: