mirror of https://github.com/OpenVidu/openvidu.git
Don't remove container if it does not exists
parent
df314ba6e2
commit
cf2b37414f
|
@ -31,14 +31,17 @@ public class ComposedQuickStartRecordingService extends ComposedRecordingService
|
||||||
|
|
||||||
String containerId = this.sessionsContainers.get(session.getSessionId());
|
String containerId = this.sessionsContainers.get(session.getSessionId());
|
||||||
|
|
||||||
try {
|
if (containerId != null) {
|
||||||
dockerManager.removeDockerContainer(containerId, true);
|
try {
|
||||||
} catch (Exception e) {
|
dockerManager.removeDockerContainer(containerId, true);
|
||||||
log.error("Can't remove COMPOSED_QUICK_START recording container from session {}", session.getSessionId());
|
} catch (Exception e) {
|
||||||
|
log.error("Can't remove COMPOSED_QUICK_START recording container from session {}", session.getSessionId());
|
||||||
|
}
|
||||||
|
|
||||||
|
containers.remove(containerId);
|
||||||
|
sessionsContainers.remove(session.getSessionId());
|
||||||
}
|
}
|
||||||
|
|
||||||
containers.remove(containerId);
|
|
||||||
sessionsContainers.remove(session.getSessionId());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue