Skip to content

Commit 5c16651

Browse files
committed
clearing previous recorded video if start new one.
1 parent 9557070 commit 5c16651

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/commands/record-screen.js

+3
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 previous record');
257+
await this._screenRecorder.stop(true);
255258
}
256259
this._screenRecorder = null;
257260

0 commit comments

Comments
 (0)