diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-03-01 12:34:41 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-03-01 16:45:51 +0100 |
| commit | d03f0a099846f3ac97b238199e8802e9aa429d06 (patch) | |
| tree | bce29a9700d51ce7c3b8c944fe5db406da53b1d3 /gui | |
| parent | 93724ed5758e319919ca9d443315d59e442284fb (diff) | |
| download | mullvadvpn-d03f0a099846f3ac97b238199e8802e9aa429d06.tar.xz mullvadvpn-d03f0a099846f3ac97b238199e8802e9aa429d06.zip | |
Add missing return;
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/src/main/jsonrpc-client.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/src/main/jsonrpc-client.ts b/gui/src/main/jsonrpc-client.ts index 67da72fab7..2d66aad50d 100644 --- a/gui/src/main/jsonrpc-client.ts +++ b/gui/src/main/jsonrpc-client.ts @@ -252,6 +252,7 @@ export default class JsonRpcClient<T> extends EventEmitter { message = jsonrpc.parseObject(obj); } catch (error) { log.error(`Failed to parse JSON-RPC message: ${error} for object`); + return; } if (message.type === 'notification') { |
