Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Commit 06c8980

Browse files
committed
Fix: await lobby
1 parent c9ac695 commit 06c8980

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web-apis/bg/experimental/peer-socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const LAB_PERMS_OBJ = {perm: API_PERM_ID, labApi: LAB_API_ID, apiDocsUrl: API_DO
1616
module.exports = {
1717
async joinLobby (tabIdentity, lobbyType, lobbyName) {
1818
await globals.permsAPI.checkLabsPerm(Object.assign({sender: this.sender}, LAB_PERMS_OBJ))
19-
var lobby = PeerSocket.getOrCreateLobby(this.sender, tabIdentity, lobbyType, lobbyName)
19+
var lobby = await PeerSocket.getOrCreateLobby(this.sender, tabIdentity, lobbyType, lobbyName)
2020
return {
2121
sessionData: lobby.self.sessionData
2222
}

0 commit comments

Comments
 (0)