From 0970fdd7e7dadc6ec754c83ff448a0e0dca8d83a Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Mon, 2 May 2016 14:09:57 -0500 Subject: [PATCH] Clears external connect data after using it --- connection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/connection.js b/connection.js index d66dd24f3..97fa602d8 100644 --- a/connection.js +++ b/connection.js @@ -31,6 +31,7 @@ function checkForAttachParametersAndConnect(id, password, connection) { var attachOptions = window.XMPPAttachInfo.data; if(attachOptions) { connection.attach(attachOptions); + delete window.XMPPAttachInfo.data; } else { connection.connect({id, password}); }