From f88d7c4959e7603714a5bb8f25807889a25304ee Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 11 Jul 2020 17:37:54 -0300 Subject: synchronize playing new tracks across sockets --- general-util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'general-util.js') diff --git a/general-util.js b/general-util.js index b4491de..4bfd491 100644 --- a/general-util.js +++ b/general-util.js @@ -336,7 +336,7 @@ export async function parseOptions(options, optionDescriptorMap) { parseOptions.handleDashless = Symbol() -export function silenceEvents(emitter, eventsToSilence, callback) { +export async function silenceEvents(emitter, eventsToSilence, callback) { const oldEmit = emitter.emit emitter.emit = function(event, ...data) { @@ -345,7 +345,7 @@ export function silenceEvents(emitter, eventsToSilence, callback) { } } - callback() + await callback() emitter.emit = oldEmit } -- cgit 1.3.0-6-gf8a5