mirror of https://github.com/OpenVidu/openvidu.git
Don't remove container if it does not exists
parent
df314ba6e2
commit
cf2b37414f
|
@ -31,6 +31,7 @@ public class ComposedQuickStartRecordingService extends ComposedRecordingService
|
||||||
|
|
||||||
String containerId = this.sessionsContainers.get(session.getSessionId());
|
String containerId = this.sessionsContainers.get(session.getSessionId());
|
||||||
|
|
||||||
|
if (containerId != null) {
|
||||||
try {
|
try {
|
||||||
dockerManager.removeDockerContainer(containerId, true);
|
dockerManager.removeDockerContainer(containerId, true);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -41,6 +42,8 @@ public class ComposedQuickStartRecordingService extends ComposedRecordingService
|
||||||
sessionsContainers.remove(session.getSessionId());
|
sessionsContainers.remove(session.getSessionId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Recording startRecordingWithVideo(Session session, Recording recording, RecordingProperties properties)
|
protected Recording startRecordingWithVideo(Session session, Recording recording, RecordingProperties properties)
|
||||||
throws OpenViduException {
|
throws OpenViduException {
|
||||||
|
|
Loading…
Reference in New Issue