Merge pull request #175 from shazbert/unreachable_code_fix

Fixed unreachable code in websocket client front-end code
This commit is contained in:
Adrian Gallagher
2018-08-17 10:45:32 +10:00
committed by GitHub

View File

@@ -52,8 +52,8 @@ export class WebsocketService {
}, 400);
if (ws.readyState !== WebSocket.OPEN) {
throw new Error('Failed to send message to websocket after 10 attempts');
this.isConnected = false;
throw new Error('Failed to send message to websocket after 10 attempts');
}
}
};