diff --git a/src/addon.cpp b/src/addon.cpp index 00f5d47..96f2897 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -23,6 +23,8 @@ #include using namespace v8; +void emptyNextTickQueue(Isolate *isolate); + /* These two are definitely static */ std::vector> nextTickQueue; Isolate *isolate; @@ -61,9 +63,9 @@ void Main(Local exports) { }); /* Also empty in pre, it doesn't matter */ - /*uWS::Loop::defaultLoop()->setPreHandler([]() { + uWS::Loop::defaultLoop()->setPreHandler([](uWS::Loop *) { emptyNextTickQueue(isolate); - });*/ + }); /* Hook up our timers */ us_loop_integrate((us_loop *) uWS::Loop::defaultLoop()); diff --git a/uWebSockets b/uWebSockets index 04281ee..3c3819f 160000 --- a/uWebSockets +++ b/uWebSockets @@ -1 +1 @@ -Subproject commit 04281eeea649d2d9d527644eba5866de44b64502 +Subproject commit 3c3819fe3c69a845531c5a4cc5cc81740c15d213