mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: minor refactoring
parent
96540689c2
commit
d031d0e467
|
@ -161,9 +161,10 @@ public class ComposedRecordingService {
|
||||||
this.startedRecordings.remove(recording.getId());
|
this.startedRecordings.remove(recording.getId());
|
||||||
|
|
||||||
if (containerId == null) {
|
if (containerId == null) {
|
||||||
|
|
||||||
// Session was closed while recording container was initializing
|
// Session was closed while recording container was initializing
|
||||||
// Wait until containerId is available and force its stop and removal
|
// Wait until containerId is available and force its stop and removal
|
||||||
Thread t = new Thread(() -> {
|
new Thread(() -> {
|
||||||
log.warn("Session closed while starting recording container");
|
log.warn("Session closed while starting recording container");
|
||||||
boolean containerClosed = false;
|
boolean containerClosed = false;
|
||||||
String containerIdAux;
|
String containerIdAux;
|
||||||
|
@ -190,8 +191,8 @@ public class ComposedRecordingService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}).start();
|
||||||
t.start();
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Gracefully stop ffmpeg process
|
// Gracefully stop ffmpeg process
|
||||||
|
|
Loading…
Reference in New Issue