Skip to content

Commit

Permalink
Try to send the manifest before starting the sampler
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Dec 15, 2024
1 parent d5c6496 commit 057970b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Ultra.Sampler/MacOS/MacOSUltraSampler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ protected override void EnableImpl()
{
_nextModuleEventIndexToLog = 0;
_captureEnabled = true;
// Make sure to always send the manifest before resuming the capture thread
try
{
EventSource.SendCommand(UltraSamplerSource.Log, EventCommand.SendManifest, null);
}
catch
{
// Ignore
}
_resumeCaptureThread.Set();
}

Expand Down

0 comments on commit 057970b

Please sign in to comment.