fix resuming save tasks on startup

This commit is contained in:
Jack Robison 2019-05-06 12:51:51 -04:00
parent 24e073680b
commit f642cfe9dd
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -154,6 +154,8 @@ class StreamManager:
t = [ t = [
self.loop.create_task( self.loop.create_task(
stream.start(node=self.node, save_now=(stream.full_path is not None)) stream.start(node=self.node, save_now=(stream.full_path is not None))
if not stream.full_path else
stream.save_file(node=self.node)
) for stream in self.streams.values() if stream.running ) for stream in self.streams.values() if stream.running
] ]
if t: if t: