Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
if (currentTime - lastTime > idleTimeoutMs) {
//logout
sh.reset();
- sh.sessionClosed();
+ sh.sessionClosed("Session timed out after " + timeout + " seconds.");
document.body.onmousemove = undefined;
document.body.onkeydown = undefined;
} else {
};
extend(ShellInABox, VT100);
-ShellInABox.prototype.sessionClosed = function() {
+ShellInABox.prototype.sessionClosed = function(msg) {
try {
this.connected = false;
if (this.session) {
if (this.cursorX > 0) {
this.vt100('\r\n');
}
- this.vt100('Session closed.');
+ this.vt100(msg || 'Session closed.');
this.currentRequest.abort();
}
// Revealing the "reconnect" button is commented out until we hook