ensure we don't send a handshake on every reconnect

This commit is contained in:
Peter 'Pita' Martischka 2011-07-22 14:17:58 +01:00
parent a717e07531
commit 3ccdcec7e8

View file

@ -80,7 +80,7 @@ function handshake()
resource: resource resource: resource
}); });
socket.on('connect', function() socket.once('connect', function()
{ {
var padId = document.URL.substring(document.URL.lastIndexOf("/") + 1); var padId = document.URL.substring(document.URL.lastIndexOf("/") + 1);