Skip to content

Commit

Permalink
keep one revert two
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Aug 21, 2023
1 parent a58b19e commit 70f01de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mirai.R
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ daemons <- function(n, url = NULL, dispatcher = TRUE, tls = NULL, ..., .compute
urlc <- strcat(urld, "c")
sock <- req_socket(urld)
sockc <- req_socket(urlc, resend = 0L)
launch_and_sync_daemon(sock = sock, synctime = dispatcher + is.logical(dispatcher) * .timelimit, urld, parse_dots(...), url, n, urlc, tls = tls)
launch_and_sync_daemon(sock = sock, synctime = if (is.numeric(dispatcher)) dispatcher else .timelimit, urld, parse_dots(...), url, n, urlc, tls = tls)
init_monitor(sockc = sockc, envir = envir)
} else {
sock <- req_socket(url, tls = if (length(tls)) tls_config(server = tls))
Expand Down Expand Up @@ -785,7 +785,7 @@ daemons <- function(n, url = NULL, dispatcher = TRUE, tls = NULL, ..., .compute
if (dispatcher) {
urlc <- strcat(urld, "c")
sockc <- req_socket(urlc, resend = 0L)
launch_and_sync_daemon(sock = sock, synctime = dispatcher + is.logical(dispatcher) * .timelimit, urld, dots, n, urlc)
launch_and_sync_daemon(sock = sock, synctime = if (is.numeric(dispatcher)) dispatcher else .timelimit, urld, dots, n, urlc)
init_monitor(sockc = sockc, envir = envir)
} else {
for (i in seq_len(n))
Expand Down

0 comments on commit 70f01de

Please sign in to comment.