mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Prevent Port leaks after loading SaveState in the middle of multiplayer resulting to "port in use" error on the next attempt to play multiplayer.
This commit is contained in:
parent
8b2aeade15
commit
335650da6c
1 changed files with 1 additions and 0 deletions
|
@ -960,6 +960,7 @@ void __NetAdhocDoState(PointerWrap &p) {
|
|||
adhocctlRequests.clear();
|
||||
adhocSocketRequests.clear();
|
||||
sendTargetPeers.clear();
|
||||
deleteAllAdhocSockets();
|
||||
|
||||
// Let's not change "Inited" value when Loading SaveState to prevent memory & port leaks
|
||||
netAdhocMatchingInited = cur_netAdhocMatchingInited;
|
||||
|
|
Loading…
Add table
Reference in a new issue