openvidu-server: fix NullPointer on stop composite recording

pull/550/head
pabloFuente 2020-10-13 14:35:41 +02:00
parent dfa12ffbb8
commit 3daf4a2ec1
1 changed files with 3 additions and 3 deletions

View File

@ -86,8 +86,8 @@ public class CompositeWrapper {
this.recorderEndpoint.record();
}
public synchronized void stopCompositeRecording(CountDownLatch stopLatch, Long timeOfKmsDisconnection) {
if (timeOfKmsDisconnection == 0) {
public synchronized void stopCompositeRecording(CountDownLatch stopLatch, Long kmsDisconnectionTime) {
if (kmsDisconnectionTime == null) {
this.recorderEndpoint.addStoppedListener(new EventListener<StoppedEvent>() {
@Override
public void onEvent(StoppedEvent event) {
@ -101,7 +101,7 @@ public class CompositeWrapper {
});
this.recorderEndpoint.stop();
} else {
endTime = timeOfKmsDisconnection;
endTime = kmsDisconnectionTime;
stopLatch.countDown();
log.warn("Forcing composed audio-only recording stop after KMS restart in session {}",
this.session.getSessionId());