Skip to content

Commit

Permalink
fixed bug with the internal neighbor tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
bokner committed Sep 7, 2013
1 parent cda7521 commit e37ad4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions priv/www/geofilter.js
Expand Up @@ -53,7 +53,7 @@ function getNeighborInfo(userId){
}

function storeNeighbor(geonum, id) {
neighbors[id] = geonum;
neighbors["" + id] = geonum;
}

function removeNeighbor(id) {
Expand Down Expand Up @@ -214,6 +214,7 @@ function removeMarker (id) {
if(data.arrCurrentMarkers["m"+id]){
data.arrCurrentMarkers["m"+id].setMap(null);
delete data.arrCurrentMarkers["m"+id];
removeNeighbor(id);
}
}

Expand Down Expand Up @@ -379,7 +380,6 @@ function onNeighborOut(pres) {
if (neighborId && neighborId != client.id) {
console.log('Neighbor ' + neighborId + ' has left...');
removeMarker(neighborId);
removeNeighbor(neighborId);
}
return true;
}
Expand Down

0 comments on commit e37ad4d

Please sign in to comment.