Skip to content

Commit d8c8b87

Browse files
authored
fix: Clearing the recent recorded video if start new one. (#302)
* clearing previous recorded video if start new one. * improve log message
1 parent 9557070 commit d8c8b87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/commands/record-screen.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ export async function startRecordingScreen (
252252
}
253253
this.log.debug('Forcing the active screen recording to stop');
254254
await this._screenRecorder.stop(true);
255+
} else if (this._screenRecorder) {
256+
this.log.debug('Clearing the recent screen recording');
257+
await this._screenRecorder.stop(true);
255258
}
256259
this._screenRecorder = null;
257260

0 commit comments

Comments
 (0)