Skip to content
Snippets Groups Projects
Commit 96e0e93e authored by yamadapc's avatar yamadapc
Browse files

Fix tests & potential double close event

This closes #36
parent c3dfdb4a
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ class Steem extends EventEmitter {
const releaseClose = this.listenTo(this.ws, 'close', () => {
debugWs('Closed WS connection with', url);
this.isOpen = false;
delete this.ws;
this.stop();
if (startP.isPending()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment