mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
recoverLoopIns wrote to the activeLoopIns map from inside a goroutine without any synchronization. The map is shared state accessed from the manager's main Run loop, creating a data race. Move the map write before the goroutine spawn so it happens synchronously during recovery. Also fix the stale log message that said "OnStart" instead of "OnRecover". |
||
|---|---|---|
| .. | ||
| address | ||
| deposit | ||
| loopin | ||
| openchannel | ||
| script | ||
| staticutil | ||
| version | ||
| withdraw | ||
| log.go | ||