mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-15 03:41:33 +01:00
null check for "self.ws"
This commit is contained in:
parent
d9a6507fe6
commit
28c242d82c
1 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,8 @@ class NiconicoLiveFD(FragmentFD):
|
|||
yield self
|
||||
finally:
|
||||
stopped.set()
|
||||
self.ws.close()
|
||||
if self.ws:
|
||||
self.ws.close()
|
||||
thread.join()
|
||||
|
||||
def _master_m3u8_url(self):
|
||||
|
|
Loading…
Reference in a new issue