File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -441,16 +441,6 @@ class WebSocketDebugService implements IDebugService {
441
441
WebSocketProxyService webSocketProxyService,
442
442
) {
443
443
return webSocketHandler ((WebSocketChannel webSocket) {
444
- if (! _acceptNewConnections) {
445
- webSocket.sink.add (
446
- jsonEncode ({
447
- 'error' : 'Cannot connect: another service has taken control.' ,
448
- }),
449
- );
450
- webSocket.sink.close ();
451
- return ;
452
- }
453
-
454
444
final responseController = StreamController <Map <String , Object ?>>();
455
445
webSocket.sink.addStream (responseController.stream.map (jsonEncode));
456
446
@@ -473,9 +463,6 @@ class WebSocketDebugService implements IDebugService {
473
463
webSocketProxyService,
474
464
).done.whenComplete (() {
475
465
-- _clientsConnected;
476
- if (! _acceptNewConnections && _clientsConnected == 0 ) {
477
- _acceptNewConnections = true ;
478
- }
479
466
});
480
467
});
481
468
}
You can’t perform that action at this time.
0 commit comments