diff --git a/backend/open_webui/socket/utils.py b/backend/open_webui/socket/utils.py index d3de87b05..46fafbb9e 100644 --- a/backend/open_webui/socket/utils.py +++ b/backend/open_webui/socket/utils.py @@ -26,7 +26,7 @@ class RedisLock: def release_lock(self): lock_value = self.redis.get(self.lock_name) - if lock_value and lock_value.decode("utf-8") == self.lock_id: + if lock_value and lock_value == self.lock_id: self.redis.delete(self.lock_name)