From 9fd9043a2dd6537a2a1ecf642e543405ab9a77a4 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 22 Mar 2024 13:01:08 -0400 Subject: [PATCH] cwIo.cpp : Set p->sockN and p->serialN to 0 when socket or serial sub-systems are disabled. --- cwIo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cwIo.cpp b/cwIo.cpp index 9a6d969..9d23d5d 100644 --- a/cwIo.cpp +++ b/cwIo.cpp @@ -526,6 +526,7 @@ namespace cw if( enableFl==false || p->serialN == 0 ) { + p->serialN = 0; cwLogInfo("Serial port sub-system disabled."); goto errLabel; } @@ -806,6 +807,7 @@ namespace cw if( enableFl == false || p->sockN == 0 ) { + p->sockN = 0; cwLogInfo("Socket system disabled."); goto errLabel; }