Skip to content

Commit

Permalink
more efficient daemon exit ack
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Nov 13, 2023
1 parent 59f8964 commit 5faa0c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/dispatcher.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,7 @@ dispatcher <- function(host, url = NULL, n = NULL, ..., asyncdial = FALSE,
send_aio(queue[[i]][["ctx"]], data = req, mode = 2L)
q <- queue[[i]][["daemon"]]
if (req[1L] == .nextmode) {
ctx <- .context(servers[[q]])
send_aio(ctx, data = NULL, mode = 2L)
reap(ctx)
send_aio(.context(servers[[q]]), data = NULL, mode = 2L)
} else {
serverfree[q] <- TRUE
}
Expand Down

0 comments on commit 5faa0c1

Please sign in to comment.