From dd7262d9e6fe6eaa406501fe5b653adff5d189cc Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 20 Jan 2011 17:53:49 +0000 Subject: [PATCH] we haven't closed session file for previous target which lead to potentially nasty problems in multi target mode --- lib/core/target.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/target.py b/lib/core/target.py index c08945915..79052ec68 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -279,6 +279,9 @@ def initTargetEnv(): """ if conf.multipleTargets: + if conf.sessionFP: + conf.sessionFP.close() + if conf.cj: conf.cj.clear()