Skip to content

Commit 859d988

Browse files
committed
fix mistake in dispatch_timer.c
1 parent 1b0c8a7 commit 859d988

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/dispatch_timer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ test_timer(void)
8686
fprintf(stderr, "%d\n", ++i);
8787
if (i >= stop_at) {
8888
test_long("i", i, stop_at);
89-
dispatch_source_set_timer(s, dispatch_time(DISPATCH_TIME_NOW, 0), 0, 0);
89+
dispatch_source_set_timer(s, dispatch_time(DISPATCH_TIME_NOW, 0),
90+
DISPATCH_TIME_FOREVER, 0);
9091
dispatch_source_cancel(s);
9192
}
9293
});

0 commit comments

Comments
 (0)