Skip to content

Commit

Permalink
Add call to callback in WebsocketProvider.prototype.send on error (#1209
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gabmontes authored and frozeman committed Dec 14, 2017
1 parent 06fa8bf commit dd9d540
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web3-providers-ws/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ WebsocketProvider.prototype.send = function (payload, callback) {
} else {
console.error('no error callback');
}
callback(new Error('connection not open'));
return;
}

Expand Down

0 comments on commit dd9d540

Please sign in to comment.