fix stream update callback to update the main dict

This commit is contained in:
Victor Shyba 2019-04-28 19:23:01 -03:00 committed by Lex Berezhny
parent de9473f75a
commit b350e74aca

View file

@ -75,7 +75,7 @@ class StreamManager:
async def _update_content_claim(self, stream: ManagedStream): async def _update_content_claim(self, stream: ManagedStream):
claim_info = await self.storage.get_content_claim(stream.stream_hash) claim_info = await self.storage.get_content_claim(stream.stream_hash)
stream.set_claim(claim_info, claim_info['value']) self.streams.setdefault(stream.sd_hash, stream).set_claim(claim_info, claim_info['value'])
async def stop_stream(self, stream: ManagedStream): async def stop_stream(self, stream: ManagedStream):
stream.stop_download() stream.stop_download()