Skip to content

Commit 47a78ec

Browse files
Merge pull request #73 from blackdotraven/fix_asterisk_lock_logic
fix: asterisk lock logic error
2 parents b71f89c + 15a4875 commit 47a78ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/dect-wip/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def ClaimExtensionByVoucher():
525525

526526
# generates Asterisk config
527527
def writePjsip():
528-
if lock_asterisk.locked():
528+
if not lock_asterisk.locked():
529529
raise RuntimeError("the writePjsip function assumes that the asterisk lock is already acquired by the calling function")
530530

531531
query_result = db.session.execute(db.select(UserExtension)).all()

0 commit comments

Comments
 (0)