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(); + } } }