Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
Fixed a bug in the error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Rögner authored and Lukas Rögner committed May 10, 2020
1 parent b3e4673 commit a1882e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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) {
Expand Down

0 comments on commit a1882e8

Please sign in to comment.