Fixed unreachable code

This commit is contained in:
Ryan O'Hara-Reid
2018-08-17 10:41:04 +10:00
parent cdb4df98e7
commit 9918896923

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');
}
}
};