mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Fixed PortManager fallback Cleanup issue when exiting PPSSPP due to early WSACleanup
This commit is contained in:
1 parent
65bc68609c
commit
e21ea719e9
2 files changed
+9
-4
No files matched your search
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user