}
this.vt100('Session closed.');
}
- this.showReconnect(true);
+ // Revealing the "reconnect" button is commented out until we hook
+ // up the username+token auto-login mechanism to the new session:
+ //this.showReconnect(true);
} catch (e) {
}
};
}
}
}(this);
+ ShellInABox.lastRequestSent = Date.now();
request.send(content);
};
this.sendRequest(request);
}
} else if (request.status == 0) {
- // Time Out
- this.sendRequest(request);
+ if (ShellInABox.lastRequestSent + 2000 < Date.now()) {
+ // Timeout, try again
+ this.sendRequest(request);
+ } else {
+ this.vt100('\r\n\r\nRequest failed.');
+ this.sessionClosed();
+ }
} else {
this.sessionClosed();
}