diff --git a/web-apis/bg/experimental/peer-socket.js b/web-apis/bg/experimental/peer-socket.js index 47dd4bdc..36ed3cd5 100644 --- a/web-apis/bg/experimental/peer-socket.js +++ b/web-apis/bg/experimental/peer-socket.js @@ -16,7 +16,7 @@ const LAB_PERMS_OBJ = {perm: API_PERM_ID, labApi: LAB_API_ID, apiDocsUrl: API_DO module.exports = { async joinLobby (tabIdentity, lobbyType, lobbyName) { await globals.permsAPI.checkLabsPerm(Object.assign({sender: this.sender}, LAB_PERMS_OBJ)) - var lobby = PeerSocket.getOrCreateLobby(this.sender, tabIdentity, lobbyType, lobbyName) + var lobby = await PeerSocket.getOrCreateLobby(this.sender, tabIdentity, lobbyType, lobbyName) return { sessionData: lobby.self.sessionData }