[pve-devel] [PATCH xtermjs 3/3] reload on container reboot
Dominik Csapak
d.csapak at proxmox.com
Fri Apr 27 11:17:37 CEST 2018
if the container stays on the same node and the state is running,
we reload to reconnect
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/www/main.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/www/main.js b/src/www/main.js
index 644ef7f..ac437f8 100644
--- a/src/www/main.js
+++ b/src/www/main.js
@@ -237,6 +237,9 @@ function checkMigration() {
// still waiting
updateState(states.reconnecting, 'waiting for migration to finish...');
setTimeout(checkMigration, 5000);
+ } else if (started) {
+ // container was rebooted
+ location.reload();
} else {
stopTerminal();
}
--
2.11.0
More information about the pve-devel
mailing list