From cbc4a6848a8448e68f620b112ce1da955abcd4ab Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Mon, 25 May 2026 14:48:09 -0400 Subject: [PATCH] during RPTL of a peer that is already connected, use disconnectPeer instead of trying to directly delete the connection, although this may cause problems of its own...; --- src/fne/network/TrafficNetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fne/network/TrafficNetwork.cpp b/src/fne/network/TrafficNetwork.cpp index 908079e0..a2c2079e 100644 --- a/src/fne/network/TrafficNetwork.cpp +++ b/src/fne/network/TrafficNetwork.cpp @@ -1194,7 +1194,7 @@ void TrafficNetwork::taskNetworkRx(NetPacketRequest* req) if (connection->connectionState() == NET_STAT_RUNNING) { LogInfoEx(LOG_MASTER, "PEER %u (%s) resetting peer connection, connectionState = %u", peerId, connection->identWithQualifier().c_str(), connection->connectionState()); - delete connection; + network->disconnectPeer(peerId, connection); connection = new FNEPeerConnection(peerId, req->address, req->addrLen); connection->lastPing(now);