Skip to content

Commit 5e083f2

Browse files
committed
cdp: replace tick by run_for_ns
1 parent 7c0f6eb commit 5e083f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ pub fn listen(
482482
// - cmd from incoming connection on server socket
483483
// - JS callbacks events from scripts
484484
while (true) {
485-
try loop.io.tick();
485+
try loop.io.run_for_ns(10 * std.time.ns_per_ms);
486486
if (loop.cbk_error) {
487487
log.err("JS error", .{});
488488
// if (try try_catch.exception(alloc, js_env.*)) |msg| {

0 commit comments

Comments
 (0)