]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Do not pass DisconnectPeer events upstream to the client
authorMatt Corallo <git@bluematt.me>
Wed, 25 Jul 2018 02:08:40 +0000 (22:08 -0400)
committerMatt Corallo <git@bluematt.me>
Wed, 25 Jul 2018 02:33:12 +0000 (22:33 -0400)
src/ln/peer_handler.rs

index 7e213c037dc6be81ac550cd5b383d75b714d94be..bf0052d0236cdb69a469b0fa53a456c3bde8c55c 100644 (file)
@@ -747,6 +747,7 @@ impl<Descriptor: SocketDescriptor> PeerManager<Descriptor> {
                                                        descriptor.disconnect_socket();
                                                        self.message_handler.chan_handler.peer_disconnected(&node_id, false);
                                                }
+                                               continue;
                                        },
                                }