diff --git a/lib/tools/video-commands.js b/lib/tools/video-commands.js index 1a8064b..37b71fa 100644 --- a/lib/tools/video-commands.js +++ b/lib/tools/video-commands.js @@ -98,6 +98,9 @@ videoCommands.startVideoStream = async function startVideoStream (opts) { timeoutMs, `The IDB video streamer has failed to start streaming after ${timeoutMs}ms timeout` ); + } catch (e) { + videoStreamProcess.kill(); + throw e; } finally { videoStreamProcess.stderr.removeAllListeners('data'); videoStreamProcess.stdout.removeAllListeners('data');