feat: snapshots messages and stop timer

This commit is contained in:
Guillermo Marcel 2025-05-07 12:48:28 -03:00
parent ea4c3bb64c
commit dabab6757b

View File

@ -66,9 +66,10 @@ public class Snapshoter : ISnapshoter
try try
{ {
await process.WaitForExitAsync(timeoutSignal.Token); await process.WaitForExitAsync(timeoutSignal.Token);
} catch (OperationCanceledException) } catch (OperationCanceledException ex)
{ {
_logger.LogError("Taking snapshot timed out"); timer.Stop();
_logger.LogError("Taking snapshot timed out after {Elapsed} ms", timer.ElapsedMilliseconds);
process.Kill(); process.Kill();
return null; return null;
} }