We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ClientService
1 parent 3d3d7b7 commit e346d2dCopy full SHA for e346d2d
src/client/ClientService.ts
@@ -34,8 +34,9 @@ class ClientService {
34
const conn = evt.detail;
35
const streamHandler = (evt: wsEvents.EventWebSocketConnectionStream) => {
36
const stream = evt.detail;
37
+ // If the RPCServer is stopping or stopped then we want to reject new streams outright
38
if (!this.rpcServer[running] || this.rpcServer[status] === 'stopping') {
- stream.cancel(Error('TMP RPCServer not running'));
39
+ stream.cancel(new errors.ErrorClientServiceNotRunning());
40
return;
41
}
42
this.rpcServer.handleStream(stream);
0 commit comments