]> git.proxmox.com Git - pve-xtermjs.git/blobdiff - src/www/main.js
reload on container reboot
[pve-xtermjs.git] / 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();
                                    }