Skip to content

Commit db0f707

Browse files
committed
f - Process events in Connection::schedule_read
1 parent 4955e00 commit db0f707

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning-net-tokio/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ impl Connection {
193193
Err(e) => shutdown_socket!(e, Disconnect::PeerDisconnected),
194194
},
195195
}
196+
peer_manager.process_events();
196197
};
197198
let writer_option = us.lock().unwrap().writer.take();
198199
if let Some(mut writer) = writer_option {
@@ -201,6 +202,7 @@ impl Connection {
201202
}
202203
if let Disconnect::PeerDisconnected = disconnect_type {
203204
peer_manager.socket_disconnected(&our_descriptor);
205+
peer_manager.process_events();
204206
}
205207
}
206208

0 commit comments

Comments
 (0)