Skip to content

Commit 057970b

Browse files
committed
Try to send the manifest before starting the sampler
1 parent d5c6496 commit 057970b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Ultra.Sampler/MacOS/MacOSUltraSampler.cs

+9
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ protected override void EnableImpl()
7575
{
7676
_nextModuleEventIndexToLog = 0;
7777
_captureEnabled = true;
78+
// Make sure to always send the manifest before resuming the capture thread
79+
try
80+
{
81+
EventSource.SendCommand(UltraSamplerSource.Log, EventCommand.SendManifest, null);
82+
}
83+
catch
84+
{
85+
// Ignore
86+
}
7887
_resumeCaptureThread.Set();
7988
}
8089

0 commit comments

Comments
 (0)