mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 09:22:42 +02:00
Merge pull request #8145 from ctrlaltdavid/20978
reduce users window flicker when restart script
This commit is contained in:
commit
3fca0d655c
1 changed files with 2 additions and 2 deletions
|
@ -599,8 +599,6 @@ var usersWindow = (function () {
|
|||
usersRequest.ontimeout = pollUsersTimedOut;
|
||||
usersRequest.onreadystatechange = processUsers;
|
||||
usersRequest.send();
|
||||
|
||||
checkLoggedIn();
|
||||
}
|
||||
|
||||
processUsers = function () {
|
||||
|
@ -646,6 +644,8 @@ var usersWindow = (function () {
|
|||
updateUsersDisplay();
|
||||
updateOverlayPositions();
|
||||
|
||||
checkLoggedIn();
|
||||
|
||||
} else {
|
||||
print("Error: Request for users status returned " + usersRequest.status + " " + usersRequest.statusText);
|
||||
usersTimer = Script.setTimeout(pollUsers, HTTP_GET_TIMEOUT); // Try again after a longer delay.
|
||||
|
|
Loading…
Reference in a new issue