Skip to content

Commit

Permalink
catch one
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jan 9, 2025
1 parent 53b38ff commit 8333d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/daemon.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ daemon <- function(url, dispatcher = FALSE, ..., asyncdial = FALSE, autoexit = T
.mark()
send(sock, data, mode = 1L, block = TRUE)
aio <- recv_aio(sock, mode = 8L, cv = cv)
xc <- 2L + task >= maxtasks
xc <- 2L + (task >= maxtasks)
wait(cv)
break
}
Expand All @@ -180,7 +180,7 @@ daemon <- function(url, dispatcher = FALSE, ..., asyncdial = FALSE, autoexit = T
send(ctx, data, mode = 1L, block = TRUE)
if (cleanup) do_cleanup()
{ task >= maxtasks || maxtime && mclock() >= maxtime } && {
xc <- 2L + task >= maxtasks
xc <- 2L + (task >= maxtasks)
break
}
task <- task + 1L
Expand Down

0 comments on commit 8333d2a

Please sign in to comment.