From 273a395a2f90d5c6bf39b190faaca83399a0b682 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 25 Oct 2016 21:44:47 -0700 Subject: [PATCH] Client: when reconnecting, default to NT3. (#143) Previously once the client fell back once to NT2, it would never try connecting as NT3 even if the server was replaced with a NT3-capable one. Fixes #142. --- src/Dispatcher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Dispatcher.cpp b/src/Dispatcher.cpp index f8655abe93..9b6f269456 100644 --- a/src/Dispatcher.cpp +++ b/src/Dispatcher.cpp @@ -346,6 +346,9 @@ void DispatcherBase::ClientThreadMain() { conn->set_proto_rev(m_reconnect_proto_rev); conn->Start(); + // reconnect the next time starting with latest protocol revision + m_reconnect_proto_rev = 0x0300; + // block until told to reconnect m_do_reconnect = false; m_reconnect_cv.wait(lock, [&] { return !m_active || m_do_reconnect; });