NetworkClient: initialize client_active and profilemanager_thread

StopClient guards profilemanager_thread and nulls it after the delete,
but nothing ever set it, so destroying a client that never started
read an uninitialized pointer. client_active was unset until
StartClient and is read on the same path.
This commit is contained in:
Ken Sanislo
2026-07-23 19:10:31 -07:00
committed by Adam Honse
parent 52138b4cbd
commit 2687ff57aa

View File

@@ -96,6 +96,9 @@ NetworkClient::NetworkClient()
server_reinitialize = false;
change_in_progress = false;
client_active = false;
profilemanager_thread = NULL;
ListenThread = NULL;
ConnectionThread = NULL;
}