From 78155c4bee12a4299efffbf6c1c39892b08ab121 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 17 Feb 2016 15:49:50 +0000 Subject: [PATCH] Re-enabling the D-Star networking resets the incoming session id. --- DStarNetwork.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DStarNetwork.cpp b/DStarNetwork.cpp index db0f291..9d50268 100644 --- a/DStarNetwork.cpp +++ b/DStarNetwork.cpp @@ -310,6 +310,9 @@ void CDStarNetwork::close() void CDStarNetwork::enable(bool enabled) { + if (enabled && !m_enabled) + reset(); + m_enabled = enabled; }