Skip to content

Commit

Permalink
Flip the bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Aug 2, 2024
1 parent adb6aeb commit 24cbc78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bun.js/bindings/JSCTaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void JSCTaskScheduler::onAddPendingWork(Ref<TicketData>&& ticket, JSC::DeferredW
auto clientData = WebCore::clientData(vm);
auto& scheduler = clientData->deferredWorkTimer;
Locker<Lock> holder { scheduler.m_lock };
if (kind != DeferredWorkTimer::WorkType::ImminentlyScheduled) {
if (kind == DeferredWorkTimer::WorkType::ImminentlyScheduled) {
Bun__eventLoop__incrementRefConcurrently(clientData->bunVM, 1);
scheduler.m_pendingTicketsKeepingEventLoopAlive.add(WTFMove(ticket));
} else {
Expand Down

0 comments on commit 24cbc78

Please sign in to comment.