Skip to content

Commit

Permalink
do not require R level coercion for flag value
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jan 8, 2025
1 parent 1a55e79 commit b926f1a
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 @@ -109,7 +109,7 @@ daemon <- function(url, dispatcher = FALSE, ..., asyncdial = FALSE, autoexit = T
sock <- socket(if (dispatcher) "poly" else "rep")
on.exit(reap(sock))
`[[<-`(., "sock", sock)
autoexit && pipe_notify(sock, cv = cv, remove = TRUE, flag = as.integer(autoexit))
autoexit && pipe_notify(sock, cv = cv, remove = TRUE, flag = autoexit)
if (length(tls)) tls <- tls_config(client = tls)
dial_and_sync_socket(sock, url, asyncdial = asyncdial, tls = tls)

Expand Down Expand Up @@ -254,7 +254,7 @@ v1_daemon <- function(url, asyncdial = FALSE, autoexit = TRUE, cleanup = TRUE,
sock <- socket("rep")
on.exit(reap(sock))
`[[<-`(., "sock", sock)
autoexit && pipe_notify(sock, cv = cv, remove = TRUE, flag = as.integer(autoexit))
autoexit && pipe_notify(sock, cv = cv, remove = TRUE, flag = autoexit)
if (length(tls)) tls <- tls_config(client = tls)
dial_and_sync_socket(sock, url, asyncdial = asyncdial, tls = tls)

Expand Down

0 comments on commit b926f1a

Please sign in to comment.