From 8f2ac47270657e6f7c0c050dfb38752fbe25ab3f Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 27 Apr 2018 11:17:37 +0200 Subject: [PATCH] reload on container reboot if the container stays on the same node and the state is running, we reload to reconnect Signed-off-by: Dominik Csapak --- 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.39.2