Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MakeCallback: Use in node_signal_watcher

  • Loading branch information...
commit db45b2ca02dc23278a477625a8698ce136eb8807 1 parent e1dd570
isaacs isaacs authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/node_signal_watcher.cc
8 src/node_signal_watcher.cc
View
@@ -62,13 +62,7 @@ void SignalWatcher::Callback(EV_P_ ev_signal *watcher, int revents) {
Local<Function> callback = Local<Function>::Cast(callback_v);
- TryCatch try_catch;
-
- callback->Call(w->handle_, 0, NULL);
-
- if (try_catch.HasCaught()) {
- FatalException(try_catch);
- }
+ MakeCallback(w->handle_, callback, 0, NULL);
}
Handle<Value> SignalWatcher::New(const Arguments& args) {
Please sign in to comment.
Something went wrong with that request. Please try again.