mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Fix ev_unref error in signal handler
This commit is contained in:
1 parent
42dd629c16
commit
cff1df1f9b
1 file changed
+1
-1
@@ -34,7 +34,7 @@ void SignalHandler::OnSignal(EV_P_ ev_signal *watcher, int revents) {
|
||||
|
||||
SignalHandler::~SignalHandler() {
|
||||
if (watcher_.active) {
|
||||
ev_unref(EV_DEFAULT_UC);
|
||||
ev_ref(EV_DEFAULT_UC);
|
||||
ev_signal_stop(EV_DEFAULT_UC_ &watcher_);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user