]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 2 Jul 2023 20:27:48 +0000 (22:27 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 2 Jul 2023 20:27:48 +0000 (22:27 +0200)
- acquire lock as this command changes database

fba/commands.py

index 73814f3323ade601d1f91b871a8c2edcaf186a75..68af1bbc4983f4248cb3716c52b6853fd98c07a2 100644 (file)
@@ -1374,6 +1374,8 @@ def fetch_fedilist(args: argparse.Namespace) -> int:
 def update_nodeinfo(args: argparse.Namespace) -> int:
     logger.debug("args[]='%s' - CALLED!", type(args))
 
+    locking.acquire()
+
     if args.domain is not None and args.domain != "":
         logger.debug("Fetching args.domain='%s'", args.domain)
         database.cursor.execute("SELECT domain, software FROM instances WHERE domain = ?", [args.domain])