jump server reconnecting to the updated server addresses fix
authorDarren <darren@darrenwhitlen.com>
Fri, 13 Dec 2013 11:05:16 +0000 (11:05 +0000)
committerDarren <darren@darrenwhitlen.com>
Fri, 13 Dec 2013 11:05:16 +0000 (11:05 +0000)
client/src/models/application.js

index c1552e0d2618587aa57884034773959e3e629560..e65c2cae2adba56c0d8e64c14b50768447940dc8 100644 (file)
@@ -458,6 +458,8 @@ _kiwi.model.Application = function () {
                         that.message.text(msg, {timeout: 8000});\r
 \r
                         setTimeout(function forcedReconnectPartTwo() {\r
+                            _kiwi.gateway.set('kiwi_server', _kiwi.app.kiwi_server);\r
+\r
                             _kiwi.gateway.reconnect(function() {\r
                                 // Reconnect all the IRC connections\r
                                 that.connections.forEach(function(con){ con.reconnect(); });\r