Skip to content

Commit ab6693a

Browse files
committed
Print a debug log and exit the compute thread on application exit
1 parent 90b2ac5 commit ab6693a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

RuntimeIcons/src/Components/CameraQueueComponent.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ private void ComputeThread()
130130
}
131131
}
132132
}
133+
catch (Exception ex) when (ex is ThreadAbortException or ThreadInterruptedException)
134+
{
135+
RuntimeIcons.Log.LogDebug($"Compute thread is being aborted, exiting!");
136+
return;
137+
}
133138
catch (Exception ex)
134139
{
135140
if (toCompute is not null)

0 commit comments

Comments
 (0)