Skip to content

Commit

Permalink
fix: only reset timer persistent if Isolate is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
edusperoni committed Nov 1, 2023
1 parent 6970c92 commit 4379583
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NativeScript/runtime/Timers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class TimerTask {
}

inline void Unschedule() {
callback_.Reset();
if (wrapper.IsValid()) {
callback_.Reset();
}
args_.reset();
isolate_ = nullptr;
queued_ = false;
Expand Down

0 comments on commit 4379583

Please sign in to comment.