mirror of
https://github.com/Syncplay/syncplay
synced 2025-02-16 10:56:51 +00:00
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):
|
def _deleteRoomIfEmpty(self, room):
|
||||||
if room.isEmpty() and room.getName():
|
if room.isEmpty() and room.getName():
|
||||||
|
if self._roomsDbHandle and room.isPermanent():
|
||||||
|
return
|
||||||
if self._roomsDbHandle and room.isNotPermanent():
|
if self._roomsDbHandle and room.isNotPermanent():
|
||||||
if room.isPersistent() and not room.isPlaylistEmpty():
|
if room.isPersistent() and not room.isPlaylistEmpty():
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user