From 4e8e40d58219c66fc61989c775d4ac43dedb5d24 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sun, 19 Mar 2017 08:41:48 +0000 Subject: [PATCH] Small change to the inactivity timer resetting. --- YSFGateway/YSFGateway.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YSFGateway/YSFGateway.cpp b/YSFGateway/YSFGateway.cpp index d73dd29..9b35b6b 100644 --- a/YSFGateway/YSFGateway.cpp +++ b/YSFGateway/YSFGateway.cpp @@ -307,7 +307,8 @@ int CYSFGateway::run() if (networkEnabled && m_linked && !m_exclude) { m_netNetwork->write(buffer); - inactivityTimer.start(); + if (::memcmp(buffer + 0U, "YSFD", 4U) == 0) + inactivityTimer.start(); } if ((buffer[34U] & 0x01U) == 0x01U) {