mirror of https://github.com/Syncplay/syncplay
Fix permanent room deletion bug (#526)
This commit is contained in:
parent
e581fc3417
commit
f555c1d7a1
|
@ -482,6 +482,8 @@ class RoomManager(object):
|
|||
|
||||
def _deleteRoomIfEmpty(self, room):
|
||||
if room.isEmpty() and room.getName():
|
||||
if self._roomsDbHandle and room.isPermanent():
|
||||
return
|
||||
if self._roomsDbHandle and room.isNotPermanent():
|
||||
if room.isPersistent() and not room.isPlaylistEmpty():
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue