From 07fb4b2d4a59319ab5ba03d842274aba8182c412 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 e352960..0f5bdd5 100644 --- a/general-util.js +++ b/general-util.js @@ -311,7 +311,7 @@ parseOptions.handleDashless = Symbol() module.exports.parseOptions = parseOptions -module.exports.silenceEvents = function(emitter, eventsToSilence, callback) { +module.exports.silenceEvents = async function(emitter, eventsToSilence, callback) { const oldEmit = emitter.emit emitter.emit = function(event, ...data) { @@ -320,7 +320,7 @@ module.exports.silenceEvents = function(emitter, eventsToSilence, callback) { } } - callback() + await callback() emitter.emit = oldEmit } -- cgit 1.3.0-6-gf8a5