diff --git a/worldbuild-manager.py b/worldbuild-manager.py index 81664c4..b1f3358 100755 --- a/worldbuild-manager.py +++ b/worldbuild-manager.py @@ -77,8 +77,8 @@ cursor = db.cursor() def get_lock(): ret = 0 + sql = "SELECT GET_LOCK('tile-status-lock', 10)" while ret == 0: - sql = "SELECT GET_LOCK('tile-status-lock', 10)" cursor.execute(sql) ret = cursor.fetchone() return