WebSockets: don't assert that server is connected upon initialization (#4932)

there may already have been a disconnect, which is still in the processing queue.

fix #4931
This commit is contained in:
Maximilian Hils 2021-11-22 07:41:33 +01:00 committed by GitHub
parent 1c93a93696
commit 6398dc308a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,6 @@ class WebsocketLayer(layer.Layer):
def __init__(self, context: Context, flow: http.HTTPFlow):
super().__init__(context)
self.flow = flow
assert context.server.connected
@expect(events.Start)
def start(self, _) -> layer.CommandGenerator[None]: