mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Transition to idle after grouprooms or masterinfo requests are finished
This commit is contained in:
parent
f89bfba5dc
commit
c1c70a53be
1 changed files with 5 additions and 1 deletions
|
@ -763,7 +763,11 @@ static GError ServerListReadList(GServerList serverlist)
|
||||||
closesocket(serverlist->slsocket);
|
closesocket(serverlist->slsocket);
|
||||||
serverlist->slsocket = INVALID_SOCKET;
|
serverlist->slsocket = INVALID_SOCKET;
|
||||||
oldlen = 0; //clear data so it can be used again
|
oldlen = 0; //clear data so it can be used again
|
||||||
ServerListModeChange(serverlist, sl_querying);
|
if (serverlist->querytype == qt_grouprooms || serverlist->querytype == qt_masterinfo) {
|
||||||
|
ServerListModeChange(serverlist, sl_idle);
|
||||||
|
} else {
|
||||||
|
ServerListModeChange(serverlist, sl_querying);
|
||||||
|
}
|
||||||
return 0; //get out!!
|
return 0; //get out!!
|
||||||
}
|
}
|
||||||
if (oldlen < 6) //no way it could be a full IP, quit
|
if (oldlen < 6) //no way it could be a full IP, quit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue