don't close twice

This commit is contained in:
Jakob Ketterl 2021-05-10 21:27:40 +02:00
parent a006d8c125
commit 40c78940ef

View File

@ -244,6 +244,8 @@ class WebSocketConnection(object):
self.interruptPipeRecv = None self.interruptPipeRecv = None
def close(self): def close(self):
if not self.open:
return
self.open = False self.open = False
self.interrupt() self.interrupt()