Fixed PortManager fallback Cleanup issue when exiting PPSSPP due to early WSACleanup

This commit is contained in:
ANR2ME authored and Henrik Rydgård committed 2020-07-22 23:13:41 +02:00
1 parent 65bc68609c
commit e21ea719e9
2 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -149,7 +149,7 @@ void __NetShutdown() {
__ResetInitNetLib();
// Since PortManager supposed to be general purpose for whatever port forwarding PPSSPP needed, may be we shouldn't clear & restore ports in here? But currently there is an issue with UPnP functions used in PortManager's destructor :(
// Since PortManager supposed to be general purpose for whatever port forwarding PPSSPP needed, may be we shouldn't clear & restore ports in here? it will be cleared and restored by PortManager's destructor when exiting PPSSPP anyway
if (g_PortManager.GetInitState() == UPNP_INITSTATE_DONE) {
g_PortManager.Clear();
g_PortManager.Restore();