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());
|
||||
|
||||
if (containerId == null) {
|
||||
|
||||
// Session was closed while recording container was initializing
|
||||
// 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");
|
||||
boolean containerClosed = false;
|
||||
String containerIdAux;
|
||||
|
@ -190,8 +191,8 @@ public class ComposedRecordingService {
|
|||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
t.start();
|
||||
}).start();
|
||||
|
||||
} else {
|
||||
|
||||
// Gracefully stop ffmpeg process
|
||||
|
|
Loading…
Reference in New Issue