Close SDK connection if magic value is not correctly received

This commit is contained in:
Adam Honse
2026-04-14 01:02:00 -05:00
parent f6435d3f28
commit 0b35e12425
2 changed files with 5 additions and 3 deletions

View File

@@ -1075,8 +1075,8 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
\*---------------------------------------------*/
if(header.pkt_magic[i] != openrgb_sdk_magic[i])
{
LOG_ERROR("[%s] Invalid magic received", NETWORKSERVER);
continue;
LOG_ERROR("[%s] Invalid magic received, closing listener", NETWORKSERVER);
goto listen_done;
}
}