mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +02:00
Reset pollCount; debug log when expired generated by client
This commit is contained in:
parent
05c34fb3ee
commit
4712ec7400
1 changed files with 2 additions and 0 deletions
|
@ -403,6 +403,7 @@ function startHandshake(fromKeyboard) {
|
|||
animHandlerId = MyAvatar.addAnimationStateHandler(shakeHandsAnimation, []);
|
||||
}
|
||||
debug("starting handshake for", currentHand);
|
||||
pollCount = 0;
|
||||
state = STATES.waiting;
|
||||
connectingId = undefined;
|
||||
connectingHand = undefined;
|
||||
|
@ -557,6 +558,7 @@ function handleConnectionResponseAndMaybeRepeat(error, response) {
|
|||
if (response && (response.connection === 'pending')) {
|
||||
debug(response, 'pollCount', pollCount);
|
||||
if (pollCount++ >= POLL_LIMIT) { // server will expire, but let's not wait that long.
|
||||
debug('POLL LIMIT REACHED; TIMEOUT: expired message generated by CLIENT');
|
||||
result = {status: 'error', connection: 'expired'};
|
||||
connectionRequestCompleted();
|
||||
} else { // poll
|
||||
|
|
Loading…
Reference in a new issue