Skip to content

Commit

Permalink
fix mjpegstream logic for returning screenshots (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonahss authored and jlipps committed Aug 14, 2019
1 parent 5e3b96e commit 07a9868
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/commands/screenshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ commands.getScreenshot = async function getScreenshot () {
};

// if we've specified an mjpeg server, use that
if (this.mjpegStrem) {
if (this.mjpegStream) {
log.info(`mjpeg video stream provided, returning latest frame as screenshot`);
const data = await this.mjpegStream.lastChunkPNGBase64();
if (data) {
return data;
Expand Down

0 comments on commit 07a9868

Please sign in to comment.