« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index b8b33f1..f7604f8 100644
--- a/play.js
+++ b/play.js
@@ -170,8 +170,8 @@ async function loopPlay(fn) {
 
 	while (wavFile) {
 		const nextPromise = downloadNext()
-		console.log(wavFile)
 		await playFile(wavFile)
+		await fsp.unlink(wavFile)
 		wavFile = await nextPromise
 	}
 }