From a1882e8aecc420f275207ee0133c7b1df22e13bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20R=C3=B6gner?= Date: Sun, 10 May 2020 19:38:08 +0200 Subject: [PATCH] Fixed a bug in the error handling. --- dist/lib/connection.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist/lib/connection.js b/dist/lib/connection.js index 823dc7b..805916e 100644 --- a/dist/lib/connection.js +++ b/dist/lib/connection.js @@ -154,6 +154,7 @@ class Connection extends typed_events_1.default { } catch (e) { that.emit('debug', "DEBUG: >>>> Error while writing to socket"); reject(); + return; } } else { @@ -165,6 +166,7 @@ class Connection extends typed_events_1.default { } catch (e) { that.emit('debug', "DEBUG: >>>> Error while writing to socket"); reject(); + return; } } if (!waitForResponse) {