From 5a56d53d909e8f2e24aa7c63a143145989374694 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 16 Mar 2021 15:21:03 +0100 Subject: [PATCH] fix thread thermo flir --- Thermo.Active.Core/ThreadsFunctions.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Thermo.Active.Core/ThreadsFunctions.cs b/Thermo.Active.Core/ThreadsFunctions.cs index 477a3145..a42ef5de 100644 --- a/Thermo.Active.Core/ThreadsFunctions.cs +++ b/Thermo.Active.Core/ThreadsFunctions.cs @@ -406,15 +406,15 @@ public static class ThreadsFunctions Thread.Sleep(CalcSleepTime(samplMsec("FlirCamera"), (int)sw.ElapsedMilliseconds)); } } - } - catch (ThreadAbortException) - { - ncAdapter.Dispose(); - } - finally - { - // chiudo thermocam - TCCom.Dispose(); + catch (ThreadAbortException) + { + ncAdapter.Dispose(); + } + finally + { + // chiudo thermocam + TCCom.Dispose(); + } } }