Skip to content

Commit

Permalink
fix finalizer in cfMulticore
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed Apr 8, 2023
1 parent e6c865e commit 84d2dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/clusterFunctionsMulticore.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Multicore = R6Class("Multicore",
initialize = function(ncpus) {
self$jobs = data.table(pid = integer(0L), count = integer(0L))
self$ncpus = ncpus
reg.finalizer(self, function(e) mccollect(self$procs$pid, timeout = 1), onexit = FALSE)
reg.finalizer(self, function(e) mccollect(self$jobs$pid, timeout = 1), onexit = FALSE)
},

spawn = function(jc) {
Expand Down

0 comments on commit 84d2dce

Please sign in to comment.