mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
There was a race condition that would cause an assertion to segfault if a call to release_peer was interleaved with a fail_peer. The release_peer was making the peer non-local, which was then causing the assertion in fail_peer to fail. Now we just have 3 cases: not found, local, and non-local. Signed-off-by: Christian Decker <decker.christian@gmail.com>