aboutsummaryrefslogtreecommitdiff
path: root/src/bun_js.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun_js.zig')
-rw-r--r--src/bun_js.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun_js.zig b/src/bun_js.zig
index ebd0c0856..eda807188 100644
--- a/src/bun_js.zig
+++ b/src/bun_js.zig
@@ -149,7 +149,7 @@ pub const Run = struct {
while (this.vm.eventLoop().tasks.count > 0 or this.vm.active_tasks > 0 or this.vm.uws_event_loop.?.active > 0) {
this.vm.tick();
- if (this.vm.eventLoop().tickConcurrentWithCount() == 0) {
+ if (this.vm.uws_event_loop.?.num_polls > 0 or this.vm.uws_event_loop.?.active > 0) {
this.vm.uws_event_loop.?.tick();
}
}