cwIo.cpp : Set p->sockN and p->serialN to 0 when socket or serial sub-systems are disabled.

This commit is contained in:
kevin 2024-03-22 13:01:08 -04:00
parent 6f2444b8d7
commit 9fd9043a2d

View File

@ -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;
}