Skip to content

Commit 812bcb9

Browse files
monkbrocrgbkrk
authored andcommitted
Delete uv_timer_t when unmonitoring socket (#218)
1 parent f92cefa commit 812bcb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

binding.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,7 @@ namespace zmq {
11411141
return;
11421142
}
11431143
uv_timer_stop(this->monitor_handle_);
1144+
uv_close(reinterpret_cast<uv_handle_t*>(this->monitor_handle_), on_uv_close);
11441145
this->monitor_handle_ = NULL;
11451146
this->monitor_socket_ = NULL;
11461147
}

0 commit comments

Comments
 (0)