fix elastic pingpong (#5)

fix elastic pingpong not started after peer conn established
This commit is contained in:
Sijie.Sun
2024-01-30 12:58:15 +08:00
committed by GitHub
parent 118954c745
commit 003520f2b4
4 changed files with 26 additions and 11 deletions
+1
View File
@@ -100,6 +100,7 @@ impl Peer {
pub async fn add_peer_conn(&self, mut conn: PeerConn) {
conn.set_close_event_sender(self.close_event_sender.clone());
conn.start_recv_loop(self.packet_recv_chan.clone());
conn.start_pingpong();
self.global_ctx
.issue_event(GlobalCtxEvent::PeerConnAdded(conn.get_conn_info()));
self.conns