From 4b9df8f696d30c277104728231f17d52ff14c939 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 29 Feb 2020 22:03:53 -0500 Subject: [PATCH] Dont hold peers lock when calling user code --- lightning/src/ln/peer_handler.rs | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index c02e351be..692e6769a 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -1136,18 +1136,30 @@ impl PeerManager { log_trace!(self.logger, "Disconnecting peer with id {} due to ping timeout", node_id); @@ -1180,10 +1192,6 @@ impl PeerManager