(self, room)
| 496 | return room |
| 497 | |
| 498 | def _deleteRoomIfEmpty(self, room): |
| 499 | if room.isEmpty() and room.getName(): |
| 500 | if self._roomsDbHandle and room.isPermanent(): |
| 501 | return |
| 502 | if self._roomsDbHandle and room.isNotPermanent(): |
| 503 | if room.isPersistent() and not room.isPlaylistEmpty(): |
| 504 | return |
| 505 | self._roomsDbHandle.deleteRoom(room.getName()) |
| 506 | del self._rooms[room.getName()] |
| 507 | |
| 508 | def findFreeUsername(self, username, maxUsernameLength=constants.MAX_USERNAME_LENGTH): |
| 509 | username = truncateText(username, maxUsernameLength) |
no test coverage detected