Skip to content

Commit

Permalink
[df] Avoid clearing sample callbacks after event loop
Browse files Browse the repository at this point in the history
Sample callbacks can be registered by an RAction or an RDefinePerSample
instance. In both cases, the lifetime of the callback is tied to the lifetime of
the object itself. Avoid eager clearing of the callbacks so to not interfer with
the normal functioning.
  • Loading branch information
vepadulano committed Oct 3, 2023
1 parent e1b2cdf commit f7d9db5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tree/dataframe/src/RLoopManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,6 @@ void RLoopManager::CleanUpNodes()

fCallbacks.clear();
fCallbacksOnce.clear();
fSampleCallbacks.clear();
}

/// Perform clean-up operations. To be called at the end of each task execution.
Expand Down

0 comments on commit f7d9db5

Please sign in to comment.