mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: fix NullPointer on stop composite recording
parent
dfa12ffbb8
commit
3daf4a2ec1
|
@ -86,8 +86,8 @@ public class CompositeWrapper {
|
||||||
this.recorderEndpoint.record();
|
this.recorderEndpoint.record();
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void stopCompositeRecording(CountDownLatch stopLatch, Long timeOfKmsDisconnection) {
|
public synchronized void stopCompositeRecording(CountDownLatch stopLatch, Long kmsDisconnectionTime) {
|
||||||
if (timeOfKmsDisconnection == 0) {
|
if (kmsDisconnectionTime == null) {
|
||||||
this.recorderEndpoint.addStoppedListener(new EventListener<StoppedEvent>() {
|
this.recorderEndpoint.addStoppedListener(new EventListener<StoppedEvent>() {
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(StoppedEvent event) {
|
public void onEvent(StoppedEvent event) {
|
||||||
|
@ -101,7 +101,7 @@ public class CompositeWrapper {
|
||||||
});
|
});
|
||||||
this.recorderEndpoint.stop();
|
this.recorderEndpoint.stop();
|
||||||
} else {
|
} else {
|
||||||
endTime = timeOfKmsDisconnection;
|
endTime = kmsDisconnectionTime;
|
||||||
stopLatch.countDown();
|
stopLatch.countDown();
|
||||||
log.warn("Forcing composed audio-only recording stop after KMS restart in session {}",
|
log.warn("Forcing composed audio-only recording stop after KMS restart in session {}",
|
||||||
this.session.getSessionId());
|
this.session.getSessionId());
|
||||||
|
|
Loading…
Reference in New Issue