diff --git a/example/ffmpeg.js b/example/ffmpeg.js index 7037f18f..f34aefad 100644 --- a/example/ffmpeg.js +++ b/example/ffmpeg.js @@ -82,8 +82,6 @@ ffmpegProcess.on('close', () => { // Cleanup process.stdout.write('\n\n\n\n'); clearInterval(progressbarHandle); - // Close the programm - process.exit(0); }); // Link streams diff --git a/lib/cache.js b/lib/cache.js index e99ef2e2..9f2d67ae 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -9,7 +9,7 @@ module.exports = class Cache extends Map { clearTimeout(super.get(key).tid); } super.set(key, { - tid: setTimeout(this.delete.bind(this, key), this.timeout), + tid: setTimeout(this.delete.bind(this, key), this.timeout).unref(), value, }); }