Fixed multiplying viewers from same computer

This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-18 17:21:18 +02:00
parent 591ec4e028
commit 18fb6ba188

View File

@@ -334,10 +334,13 @@ io.on('connection', function(socket){
if(in_list)
{
try
{
if(contains(lists[coll], guid))
{
var index = lists[coll].indexOf(guid);
lists[coll].splice(index, 1);
io.sockets.emit(coll+",viewers", lists[coll].length);
}
}catch(err){}
}
});