From 43aeb5a21df2c4f975f05ef84d7904bbadf40be9 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 25 Oct 2016 14:09:36 +0100 Subject: [PATCH] Clear SERVERID cookie when reconnecting gracefully --- .../web/public/coffee/ide/connection/ConnectionManager.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/public/coffee/ide/connection/ConnectionManager.coffee b/services/web/public/coffee/ide/connection/ConnectionManager.coffee index 97530b8e4e..811587e5ad 100644 --- a/services/web/public/coffee/ide/connection/ConnectionManager.coffee +++ b/services/web/public/coffee/ide/connection/ConnectionManager.coffee @@ -204,4 +204,6 @@ define [], () -> _reconnectGracefullyNow: () -> @gracefullyReconnecting = true @reconnectGracefullyStarted = null + # Clear cookie so we don't go to the same backend server + $.cookie("SERVERID", "", { expires: -1, path: "/" }) @reconnectImmediately() \ No newline at end of file