define sessionId

This commit is contained in:
Andrew Shini 2022-02-01 18:09:55 +10:00 committed by GitHub
parent f4817dad4d
commit 3d7d7cf41e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -672,6 +672,7 @@ export class AbstractSession extends Session {
* Cancels running the session.
*/
cancel() {
const sessionId = this.getSessionId();
if (sessionId === undefined) {
return FFmpegKitReactNativeModule.cancel();
} else {