You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dash-spv: stop() can return while detached client tasks still hold the storage lock #1171
The sync loop spawns handle_fork and stop_failed as detached tasks (client/sync_coordinator.rs), each holding a client clone and with it the storage and its lock file. stop() doesn't wait for them, so it can return while they still hold the lock (dashpay/platform#5381).
Fix: track them (e.g. a JoinSet) and join them in stop() after releasing sync_loop.
Activity
fix(dash-spv): make stop wait for the tasks the sync loop detaches
fix(dash-spv): make stop wait for the tasks the sync loop detaches
fix(dash-spv): make stop wait for the tasks the sync loop detaches