Levels should match in presence detector

This commit is contained in:
Tony Garnock-Jones 2013-10-28 13:16:10 +00:00
parent b073d7fc8a
commit 16c8d0f345
1 changed files with 1 additions and 0 deletions

View File

@ -444,6 +444,7 @@ PresenceDetector.prototype.presenceExistsFor = function (probeRoute) {
var existingRoute = this.state[k];
if (probeRoute.isSubscription === !existingRoute.isSubscription
&& probeRoute.metaLevel === existingRoute.metaLevel
&& probeRoute.level == existingRoute.level
&& unify(probeRoute.pattern, existingRoute.pattern))
{
return true;