summaryrefslogtreecommitdiff
path: root/static/js/pad2.js
diff options
context:
space:
mode:
authorPeter 'Pita' Martischka <petermartischka@googlemail.com>2011-06-02 01:03:35 +0100
committerPeter 'Pita' Martischka <petermartischka@googlemail.com>2011-06-02 01:03:35 +0100
commita444e870e048f783ec08bdefe24b21aabcfbe5aa (patch)
treeec7701864d3411c986d8e68a68d51271326eb03a /static/js/pad2.js
parent612292946184942acc11e8957caa0eafc55996cb (diff)
downloadetherpad-lite-a444e870e048f783ec08bdefe24b21aabcfbe5aa.zip
Don't try to reconnect if we reset the connection on our own
Diffstat (limited to 'static/js/pad2.js')
-rw-r--r--static/js/pad2.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/js/pad2.js b/static/js/pad2.js
index 9b82e871..bf314ab0 100644
--- a/static/js/pad2.js
+++ b/static/js/pad2.js
@@ -93,6 +93,7 @@ function handshake()
//We get a disconnect message
if(obj.disconnect)
{
+ socket.reconnect = false;
socket.disconnect();
alert("You have this Pad already opened in another Window/Tab");
return;