From 4bfc0cabf49f28b95e17907c0c3423c7a15fe4ab Mon Sep 17 00:00:00 2001 From: icedream Date: Wed, 21 Oct 2015 15:10:28 +0200 Subject: [PATCH] Wait for VLC to stop playback on demand. --- app.iced | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.iced b/app.iced index 6f25ac5..9f44b77 100644 --- a/app.iced +++ b/app.iced @@ -191,7 +191,8 @@ ts3clientService.on "started", (ts3proc) => ts3query.sendtextmessage args.targetmode, invoker.id, "Now playing [URL=#{input}]#{info.title}[/URL]." when "stop" - vlc.status.stop() + await vlc.status.stop defer(err) + vlc.status.empty() ts3query.sendtextmessage args.targetmode, invoker.id, "Stopped playback."