Skip to content

Commit

Permalink
Use once
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Sep 6, 2023
1 parent ecb2f2f commit 932b089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tools/video-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ videoCommands.startVideoStream = async function startVideoStream (opts) {
await new B((resolve, reject) => {
let errorMessageChunks = [];
videoStreamProcess.stderr.on('data', (data) => {errorMessageChunks.push(data);});
videoStreamProcess.stdout.on('data', () => {resolve();});
videoStreamProcess.stdout.once('data', () => {resolve();});
videoStreamProcess.once('error', (err) => {
reject(
new Error(`The IDB video streamer has failed to start. Original error: ${err.message}; stderr: ` +
Expand Down

0 comments on commit 932b089

Please sign in to comment.