Treat Subscribers as the same only if they have the same signing key

This commit is contained in:
Jeremy Lakeman 2017-06-20 16:31:56 +09:30
parent ef2430fd58
commit 89d5f877c1

View File

@ -43,6 +43,8 @@ public final class Subscriber {
if (o == null || getClass() != o.getClass()) return false;
Subscriber that = (Subscriber) o;
if (that.signingKey!=null && this.signingKey!=null)
return signingKey.equals(that.signingKey);
return sid.equals(that.sid);
}