null check for "self.ws"

pull/9411/head
Mozi 1 year ago
parent d9a6507fe6
commit 28c242d82c

@ -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…
Cancel
Save