Permalink
Browse files

timers, bugfix: fix v8 deadlock in setHrInterval.

  • Loading branch information...
xicilion committed Oct 17, 2017
1 parent 838295b commit 4520bb3a85f47c6e270fa89f03c0968654e7a28a
Showing with 3 additions and 3 deletions.
  1. +2 −2 fibjs/src/base/Runtime.cpp
  2. +1 −1 vender
@@ -224,7 +224,7 @@ void Isolate::RequestInterrupt(v8::InterruptCallback callback, void* data)
CallbackData* cd = new CallbackData(this, callback, data);
cd->Ref();
if (m_isolate->IsInUse()) {
if (IsInUse()) {
cd->Ref();
m_isolate->RequestInterrupt(_InterruptCallback, cd);
@@ -240,7 +240,7 @@ void Isolate::RequestInterrupt(v8::InterruptCallback callback, void* data)
exlib::OSThread::sleep(1);
if (!cd->m_invoked) {
if (IsInUse() && !cd->m_invoked) {
cd->Ref();
m_isolate->RequestInterrupt(_InterruptCallback, cd);
}

0 comments on commit 4520bb3

Please sign in to comment.