From 4d8cc8bd9de62a50d4e3b0583319f19d451bf5e6 Mon Sep 17 00:00:00 2001 From: Colby Ross Date: Sun, 30 Mar 2025 14:15:14 -0400 Subject: [PATCH] Move DPlus disconnect debug statement and disconnect packet. --- QnetLink.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/QnetLink.cpp b/QnetLink.cpp index 254cc92..409d960 100644 --- a/QnetLink.cpp +++ b/QnetLink.cpp @@ -2183,15 +2183,15 @@ void CQnetLink::ProcessREF(unsigned char *buf, const int length) } else if (length==5 && buf[0]==5 && buf[1]==0 && buf[2]==24 && buf[3]==0 && buf[4]==0) { - if (log_debug) - printf("Got a disconnect request!!\n"); - /* reply with the same DISCONNECT */ - REFWrite(buf, 5, fromDst4); - for (int i=0; i<3; i++) { if (fromDst4==to_remote_g2[i].addr && to_remote_g2[i].addr.GetPort()==rmt_ref_port) { + if (log_debug) + printf("Got a disconnect request!!\n"); + /* reply with the same DISCONNECT */ + REFWrite(buf, 5, fromDst4); + printf("Call %s disconnected\n", to_remote_g2[i].cs); to_remote_g2[i].cs[0] = '\0';