null check for "self.ws"

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

@ -158,6 +158,7 @@ class NiconicoLiveFD(FragmentFD):
yield self yield self
finally: finally:
stopped.set() stopped.set()
if self.ws:
self.ws.close() self.ws.close()
thread.join() thread.join()

Loading…
Cancel
Save