Open JanEggers opened 2 months ago
here is my current workaround
public ITimelineScope Prepare()
{
try
{
return TimelineScope.Prepare();
}
catch (Exception)
{
return TimelineScope.Create("root");
}
}
my app was running fine but after some time I get this:
TimelineScope is already prepared in current execution. System.InvalidOperationException: TimelineScope is already prepared in current execution. at Rin.Core.Record.TimelineScope.Prepare()
this is the code:
I could wrap the prepare call to handle the exception but id prefere to first check if the is a scope and only if there is none create one to avoid throwing the exception in the first place but right now the current scope is internal so im missing an api to do the check