backend: stop pending egress immediately after timeout in recording service
This commit is contained in:
parent
169b8c203a
commit
0ae172e4ec
@ -177,6 +177,8 @@ export class RecordingService {
|
||||
// Everything is fine, the recording can be stopped.
|
||||
break;
|
||||
case EgressStatus.EGRESS_STARTING:
|
||||
// Avoid pending egress after timeout, stop it immediately
|
||||
await this.livekitService.stopEgress(egressId)
|
||||
// The recording is still starting, it cannot be stopped yet.
|
||||
throw errorRecordingCannotBeStoppedWhileStarting(recordingId);
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user