mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-26 05:57:07 +01:00
In this commit, we ensure that the packet queue will always exit, by continually signalling the main goroutine until it atomically sets a bool that indicates its has been fully shutdown. It has been observed that at times the main goroutine will wake up (due to the signal), but then bypass the select and actually miss the quit signal, as a result another signal is required. We'll continue to signals in a lazy loop until the goroutine has fully exited.
6.8 KiB
6.8 KiB