From 3ccdcec7e8c9ca755a291dfc214e9acd25410175 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Fri, 22 Jul 2011 14:17:58 +0100 Subject: [PATCH] ensure we don't send a handshake on every reconnect --- static/js/pad2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pad2.js b/static/js/pad2.js index fddd9622e..260b3dd09 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -80,7 +80,7 @@ function handshake() resource: resource }); - socket.on('connect', function() + socket.once('connect', function() { var padId = document.URL.substring(document.URL.lastIndexOf("/") + 1);