unique message for exceeding poll limit

This commit is contained in:
Howard Stearns 2017-04-29 14:29:43 -07:00
parent 84ac863a32
commit 274cc5b555

View file

@ -610,7 +610,7 @@
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'};
result = {status: 'error', connection: 'no-partner-found'};
connectionRequestCompleted();
} else { // poll
Script.setTimeout(function () {
@ -640,8 +640,6 @@
}
}
// this should be where we make the appropriate connection call. For now just make the
// visualization change.
function makeConnection(id) {
// send done to let the connection know you have made connection.
messageSend({
@ -651,8 +649,7 @@
state = STATES.MAKING_CONNECTION;
// continue the haptic background until the timeout fires. When we make calls, we will have an interval
// probably, in which we do this.
// continue the haptic background until the timeout fires.
Controller.triggerHapticPulse(HAPTIC_DATA.background.strength, MAKING_CONNECTION_TIMEOUT, handToHaptic(currentHand));
requestBody = {'node_id': cleanId(MyAvatar.sessionUUID), 'proposed_node_id': cleanId(id)}; // for use when repeating