mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Don't need to connect if AdhocServer IP is the same with this instance localhost IP and having AdhocServer disabled
This commit is contained in:
parent
e11e8a7fda
commit
30b9f46aa5
1 changed files with 4 additions and 0 deletions
|
@ -2083,6 +2083,10 @@ int initNetwork(SceNetAdhocctlAdhocId *adhoc_id){
|
|||
if (g_adhocServerIP.in.sin_addr.s_addr == INADDR_NONE)
|
||||
return -1;
|
||||
|
||||
// Don't need to connect if AdhocServer IP is the same with this instance localhost IP and having AdhocServer disabled
|
||||
if (g_adhocServerIP.in.sin_addr.s_addr == g_localhostIP.in.sin_addr.s_addr && !g_Config.bEnableAdhocServer)
|
||||
return -1;
|
||||
|
||||
// Connect to Adhoc Server
|
||||
int errorcode = 0;
|
||||
int cnt = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue