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

Commit

Permalink
Fix: await lobby
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Oct 7, 2018
1 parent c9ac695 commit 06c8980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-apis/bg/experimental/peer-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 06c8980

Please sign in to comment.