openvidu-server: typo fixed

pull/419/head
pabloFuente 2020-03-30 13:32:53 +02:00
parent 19a7c778da
commit 3e02a1b31f
1 changed files with 3 additions and 3 deletions

View File

@ -520,9 +520,9 @@ public class KurentoParticipant extends Participant {
private JsonObject sharedJson(Function<MediaEndpoint, JsonObject> toJsonFunction) {
JsonObject json = super.toJson();
JsonArray publisherEnpoints = new JsonArray();
JsonArray publisherEndpoints = new JsonArray();
if (this.streaming && this.publisher.getEndpoint() != null) {
publisherEnpoints.add(toJsonFunction.apply(this.publisher));
publisherEndpoints.add(toJsonFunction.apply(this.publisher));
}
JsonArray subscriberEndpoints = new JsonArray();
for (MediaEndpoint sub : this.subscribers.values()) {
@ -530,7 +530,7 @@ public class KurentoParticipant extends Participant {
subscriberEndpoints.add(toJsonFunction.apply(sub));
}
}
json.add("publishers", publisherEnpoints);
json.add("publishers", publisherEndpoints);
json.add("subscribers", subscriberEndpoints);
return json;
}