mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: wait 30s instead of 60s for recording container stop
parent
494081821f
commit
6790cb9d48
|
@ -222,7 +222,7 @@ public class ComposedRecordingService extends RecordingService {
|
||||||
|
|
||||||
if (session == null) {
|
if (session == null) {
|
||||||
log.warn(
|
log.warn(
|
||||||
"Existing recording {} does not have an active session associated. This usually means the recording"
|
"Existing recording {} does not have an active session associated. This usually means a custom recording"
|
||||||
+ " layout did not join a recorded participant or the recording has been automatically"
|
+ " layout did not join a recorded participant or the recording has been automatically"
|
||||||
+ " stopped after last user left and timeout passed",
|
+ " stopped after last user left and timeout passed",
|
||||||
recording.getId());
|
recording.getId());
|
||||||
|
@ -288,7 +288,7 @@ public class ComposedRecordingService extends RecordingService {
|
||||||
|
|
||||||
boolean stopped = false;
|
boolean stopped = false;
|
||||||
try {
|
try {
|
||||||
stopped = latch.await(60, TimeUnit.SECONDS);
|
stopped = latch.await(30, TimeUnit.SECONDS);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
failRecordingCompletion(recording, containerId,
|
failRecordingCompletion(recording, containerId,
|
||||||
new OpenViduException(Code.RECORDING_COMPLETION_ERROR_CODE,
|
new OpenViduException(Code.RECORDING_COMPLETION_ERROR_CODE,
|
||||||
|
@ -297,7 +297,7 @@ public class ComposedRecordingService extends RecordingService {
|
||||||
if (!stopped) {
|
if (!stopped) {
|
||||||
failRecordingCompletion(recording, containerId,
|
failRecordingCompletion(recording, containerId,
|
||||||
new OpenViduException(Code.RECORDING_COMPLETION_ERROR_CODE,
|
new OpenViduException(Code.RECORDING_COMPLETION_ERROR_CODE,
|
||||||
"The recording completion process couldn't finish in 60 seconds"));
|
"The recording completion process couldn't finish in 30 seconds"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove container
|
// Remove container
|
||||||
|
|
Loading…
Reference in New Issue