openvidu-server: CDREventEnd toJson "reason" simplified
This commit is contained in:
parent
2e0a963128
commit
a7d2232377
@ -48,7 +48,7 @@ public class CDREventEnd extends CDREvent {
|
||||
json.addProperty("duration", this.duration);
|
||||
}
|
||||
if (this.reason != null) {
|
||||
json.addProperty("reason", this.reason != null ? reason.name() : "");
|
||||
json.addProperty("reason", reason.name());
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user