Fix threading issue when exiting PPSSPP due to unjoined AdhocServer thread when AdhocServer failed to bind the socket and exited the thread early.

This commit is contained in:
ANR2ME committed 2021-09-28 20:44:03 +07:00
1 parent 1fd54153fc
commit 6a79f59c06
4 files changed
+8 -9

No files matched your search

+1 -2
View File
@@ -80,8 +80,7 @@ SceNetAdhocctlUserNode * _db_user = NULL;
SceNetAdhocctlGameNode * _db_game = NULL;
// Server Status
//int _status = 0;
bool adhocServerRunning = false;
std::atomic<bool> adhocServerRunning(false);
std::thread adhocServerThread;
// Crosslink database for cross region Adhoc play