[FIX] Invoke Events without holding up code
This commit is contained in:
parent
f389c27024
commit
cb1f8d42aa
1 changed files with 4 additions and 1 deletions
|
|
@ -153,7 +153,10 @@ public class Logger
|
|||
Console.ResetColor(); Console.WriteLine(b.Message);
|
||||
}
|
||||
|
||||
_ = Task.Run(() =>
|
||||
{
|
||||
LogRaised?.Invoke(null, new LogMessageEventArgs() { LogEntry = b });
|
||||
});
|
||||
|
||||
_loggerObjects.LogsToPost.Remove(b);
|
||||
|
||||
|
|
|
|||
Reference in a new issue