Bug 1105347 If something goes wrong in a Loop room, ensure that devices are released and the room is left fully. r=nperriault

This commit is contained in:
Mark Banner
2014-11-26 17:52:55 +00:00
parent e6b4efdba8
commit b9ad5bcc54
2 changed files with 38 additions and 6 deletions

View File

@@ -114,10 +114,11 @@ loop.store.ActiveRoomStore = (function() {
this.setStoreState({
error: actionData.error,
failureReason: getReason(actionData.error.errno),
roomState: actionData.error.errno === SERVER_CODES.ROOM_FULL ?
ROOM_STATES.FULL : ROOM_STATES.FAILED
failureReason: getReason(actionData.error.errno)
});
this._leaveRoom(actionData.error.errno === SERVER_CODES.ROOM_FULL ?
ROOM_STATES.FULL : ROOM_STATES.FAILED);
},
/**