Skip to content

Commit cca1ef1

Browse files
authored
Don't instantiate an unused Future in gateway connection trait (#1276)
1 parent 35ffe5d commit cca1ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/gateway/connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GatewayWebSocketConnection(BaseKernelWebsocketConnection):
2424

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

27-
ws_future = Instance(default_value=Future(), klass=Future)
27+
ws_future = Instance(klass=Future, allow_none=True)
2828

2929
disconnected = Bool(False)
3030

0 commit comments

Comments
 (0)