]> git.proxmox.com Git - pve-xtermjs.git/commitdiff
reload on container reboot
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 27 Apr 2018 09:17:37 +0000 (11:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 27 Apr 2018 09:25:11 +0000 (11:25 +0200)
if the container stays on the same node and the state is running,
we reload to reconnect

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/www/main.js

index 644ef7f40313489fa804c40dc147b3ffcc805486..ac437f8730e05813868f071e452c15a2a32e5d34 100644 (file)
@@ -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();
                                    }