From 5e6c291d556d2e89a11f18114e91644f6c45bac1 Mon Sep 17 00:00:00 2001 From: Dan Nagle Date: Tue, 29 Oct 2024 18:11:00 -0500 Subject: [PATCH] fix the dtls leave session open trigger --- src/packetnetwork.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packetnetwork.cpp b/src/packetnetwork.cpp index 513394ca..c86c80e3 100755 --- a/src/packetnetwork.cpp +++ b/src/packetnetwork.cpp @@ -991,9 +991,9 @@ void PacketNetwork::packetToSend(Packet sendpacket) << connect(thread, SIGNAL(packetSent(Packet)), this, SLOT(packetSentECHO(Packet))) << connect(thread, SIGNAL(destroyed()), this, SLOT(disconnected())); - bool leaveSessionOpen = settings.value("leaveSessionOpen").toString() == "true"; + bool leaveSessionOpen = false; #ifndef CONSOLE_BUILD - leaveSessionOpen = false; + leaveSessionOpen = settings.value("leaveSessionOpen").toString() == "true"; #endif if(leaveSessionOpen){ #ifndef CONSOLE_BUILD