fix thread thermo flir

This commit is contained in:
Samuele E. Locatelli
2021-03-16 15:21:03 +01:00
parent 89b0ce5f96
commit 5a56d53d90
+9 -9
View File
@@ -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();
}
}
}