Skip to content

Commit

Permalink
Don't specify an unused Future
Browse files Browse the repository at this point in the history
instantiating Future at import will often not work because no event loop is running
  • Loading branch information
minrk committed May 12, 2023
1 parent 35ffe5d commit f43379c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/gateway/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GatewayWebSocketConnection(BaseKernelWebsocketConnection):

ws = Instance(klass=tornado_websocket.WebSocketClientConnection, allow_none=True)

ws_future = Instance(default_value=Future(), klass=Future)
ws_future = Instance(klass=Future, allow_none=True)

disconnected = Bool(False)

Expand Down

0 comments on commit f43379c

Please sign in to comment.