From d3a2a4df41e3fa159319b70c825611e22c552ae6 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 15 Dec 2022 21:44:46 -0500 Subject: [PATCH] Remove extra global ref --- rffmpeg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rffmpeg b/rffmpeg index e06f6be..60d769b 100755 --- a/rffmpeg +++ b/rffmpeg @@ -166,7 +166,7 @@ def cleanup(signum="", frame=""): """ Clean up this processes stored transient data. """ - global config, p + global config with dbconn(config) as cur: cur.execute("DELETE FROM states WHERE process_id = ?", (config["current_pid"],))