From 2013dd91b5fd745d824f45e9e4c30c2ba0194090 Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Sun, 27 Jan 2019 01:24:49 +0000 Subject: [PATCH] Update YSFGateway.cpp Send the disconnect to the YSF2xxx gateway too --- YSFGateway/YSFGateway.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/YSFGateway/YSFGateway.cpp b/YSFGateway/YSFGateway.cpp index 3290f21..01e8fc1 100644 --- a/YSFGateway/YSFGateway.cpp +++ b/YSFGateway/YSFGateway.cpp @@ -574,6 +574,10 @@ void CYSFGateway::processWiresX(const unsigned char* buffer, unsigned char fi, u case WXS_DISCONNECT: if (m_linkType == LINK_YSF) { LogMessage("Disconnect has been requested by %10.10s", buffer + 14U); + if ( (wiresXCommandPassthrough) && (::memcmp(buffer + 0U, "YSFD", 4U) == 0) ) { + // Send the disconnect to the YSF2xxx gateway too + m_ysfNetwork->write(buffer); + } m_ysfNetwork->writeUnlink(3U); m_ysfNetwork->clearDestination();