mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-14 14:17:46 -04:00
Close SDK connection if magic value is not correctly received
This commit is contained in:
1 parent
5a2dca1ced
commit
60bc375345
2 files changed
+5
-3
No files matched your search
+2
-2
@@ -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