mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 14:35:01 -04:00
Close SDK connection if magic value is not correctly received
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user