diff --git a/lib/io.js b/lib/io.js index 1f741bf..c16dd1e 100644 --- a/lib/io.js +++ b/lib/io.js @@ -133,7 +133,7 @@ module.exports = class IO { } async _bindSockets () { - this.serverSocket = typeof this._bind === 'function' ? this._bind() : await bind.udp(this._bind) + this.serverSocket = typeof this._bind === 'function' ? await this._bind() : await bind.udp(this._bind) try { // TODO: we should reroll the socket is it's close to our preferred range of ports