diff options
author | Florrie <towerofnix@gmail.com> | 2020-07-11 17:37:54 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2020-07-11 17:42:22 -0300 |
commit | 07fb4b2d4a59319ab5ba03d842274aba8182c412 (patch) | |
tree | 6dc82202e30a67b064c2ea2c05e9fb13c802c46b /general-util.js | |
parent | 991b2f0a8280c31b93ad91d6a215b74183417352 (diff) |
synchronize playing new tracks across sockets
Diffstat (limited to 'general-util.js')
-rw-r--r-- | general-util.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |