null check for "self.ws"

This commit is contained in:
Mozi 2024-03-12 16:02:48 +00:00
parent d9a6507fe6
commit 28c242d82c

View file

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