fix savestate enet thread handling again

This commit is contained in:
Katharine Chui committed 2026-10-21 15:39:32 +02:00
1 parent 8474ca35b6
commit 23dadb11bf
1 file changed
+4 -2
+4 -2
View File
@@ -2000,12 +2000,14 @@ void __NetAdhocDoState(PointerWrap &p) {
// Keeping the current flags instead left a state saved with adhocctl inited, loaded into a
// fresh boot, failing every call with NOT_INITIALIZED; MGS Peace Walker retried
// sceNetAdhocctlDisconnect forever when starting a cutscene.
if (netAdhocInited && !cur_netAdhocInited) {
if (netAdhocInited != cur_netAdhocInited) {
if (aemuPostofficeEnetThread.joinable()) {
aemuPostofficeEnetPumping = false;
aemuPostofficeEnetThread.join();
}
SetupAdhocRelayMode();
if (netAdhocInited) {
SetupAdhocRelayMode();
}
}
if (netAdhocctlInited && !cur_netAdhocctlInited) {
isAdhocctlNeedLogin = true;