From 62f45b6c104445be06e078fa17f00d149ff5c54b Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sat, 25 Mar 2017 11:42:07 +0000 Subject: [PATCH] Fix autoconnect bug, --- YSFGateway/WiresX.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/YSFGateway/WiresX.cpp b/YSFGateway/WiresX.cpp index 1f0334e..49126cf 100644 --- a/YSFGateway/WiresX.cpp +++ b/YSFGateway/WiresX.cpp @@ -154,7 +154,13 @@ void CWiresX::setParrot(const std::string& address, unsigned int port) bool CWiresX::start() { - return m_reflectors.load(); + bool ret = m_reflectors.load(); + if (!ret) + return false; + + m_reflectors.reload(); + + return true; } WX_STATUS CWiresX::process(const unsigned char* data, const unsigned char* source, unsigned char fi, unsigned char dt, unsigned char fn, unsigned char ft)