Wait for VLC to stop playback on demand.

develop
Icedream 2015-10-21 15:10:28 +02:00
parent 7890e22723
commit 4bfc0cabf4
1 changed files with 2 additions and 1 deletions

View File

@ -191,7 +191,8 @@ ts3clientService.on "started", (ts3proc) =>
ts3query.sendtextmessage args.targetmode, invoker.id, "Now playing [URL=#{input}]#{info.title}[/URL]." ts3query.sendtextmessage args.targetmode, invoker.id, "Now playing [URL=#{input}]#{info.title}[/URL]."
when "stop" when "stop"
vlc.status.stop() await vlc.status.stop defer(err)
vlc.status.empty() vlc.status.empty()
ts3query.sendtextmessage args.targetmode, invoker.id, "Stopped playback." ts3query.sendtextmessage args.targetmode, invoker.id, "Stopped playback."