From f555c1d7a16aae6999c83cfc508bf68a9a07a7a6 Mon Sep 17 00:00:00 2001 From: Etoh Date: Sun, 15 May 2022 11:35:40 +0100 Subject: [PATCH] Fix permanent room deletion bug (#526) --- syncplay/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syncplay/server.py b/syncplay/server.py index 4c3e2d5..66e9888 100755 --- a/syncplay/server.py +++ b/syncplay/server.py @@ -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