We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f3e5e2 commit 618bd73Copy full SHA for 618bd73
1 file changed
binding.cc
@@ -1400,8 +1400,10 @@ namespace zmq {
1400
void
1401
Socket::Close() {
1402
if (socket_) {
1403
- if (zmq_close(socket_) < 0)
1404
- throw std::runtime_error(ErrorMessage());
+ if (zmq_close(socket_) < 0) {
+ Nan::ThrowError(ErrorMessage());
1405
+ return;
1406
+ }
1407
socket_ = NULL;
1408
state_ = STATE_CLOSED;
1409
context_.Reset();
0 commit comments