From 14b5ef8e531cdd46bf24ba7ea9915beeb84faff7 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Tue, 2 Mar 2010 16:04:47 +0100 Subject: [PATCH] bugfix: deinitialize lock only if initialized before Signed-off-by: Gordon Hecker --- generic/e2lib.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 22c2f65..fa8ccae 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -268,7 +268,9 @@ function abort(...) end rmtempdirs() rmtempfiles() - globals.lock:cleanup() + if globals.lock then + globals.lock:cleanup() + end os.exit(1) end @@ -474,7 +476,9 @@ function finish(returncode) end rmtempdirs() rmtempfiles() - globals.lock:cleanup() + if globals.lock then + globals.lock:cleanup() + end os.exit(returncode) end -- 2.39.5