diff --git a/src/addon.cpp b/src/addon.cpp index 81e04a8a..b63d704f 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -170,7 +170,7 @@ void Main(Local exports) { /* Register our own nextTick handler */ /* We should probably also do this in pre, just to be sure */ - uWS::Loop::defaultLoop()->setPostHandler([isolate](uWS::Loop *) { + uWS::Loop::defaultLoop()->setPostHandler([](uWS::Loop *) { emptyNextTickQueue(isolate); });