mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 06:11:07 -04:00
SDK Client Disconnection Fixes
This commit is contained in:
@@ -157,15 +157,15 @@ void NetworkClient::StartClient()
|
||||
|
||||
void NetworkClient::StopClient()
|
||||
{
|
||||
server_connected = false;
|
||||
client_active = false;
|
||||
|
||||
if (server_connected)
|
||||
if(server_connected)
|
||||
{
|
||||
shutdown(client_sock, SD_RECEIVE);
|
||||
closesocket(client_sock);
|
||||
}
|
||||
|
||||
client_active = false;
|
||||
server_connected = false;
|
||||
|
||||
if(ListenThread)
|
||||
{
|
||||
ListenThread->join();
|
||||
|
||||
Reference in New Issue
Block a user