Permalink
Browse files

timers, refactor: reuse variable isolate.

  • Loading branch information...
xicilion committed Oct 14, 2017
1 parent ad3f378 commit 41e402b5d29a6eb1194bbaad881223cf49852bac
Showing with 1 addition and 1 deletion.
  1. +1 −1 fibjs/src/global/Timer.cpp
@@ -43,7 +43,7 @@ class JSTimer : public Timer {
Isolate* isolate = holder();
if (m_hr) {
holder()->m_isolate->RequestInterrupt(_InterruptCallback, this);
isolate->m_isolate->RequestInterrupt(_InterruptCallback, this);
if (m_has_worker.CompareAndSwap(0, 1) == 0) {
Ref();

0 comments on commit 41e402b

Please sign in to comment.