Merge pull request #238 from brook2006/patch-1

Operation is not supported on this platform
This commit is contained in:
Deantwo 2020-09-24 12:22:18 +02:00 committed by GitHub
commit 53b3a954a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2049,7 +2049,7 @@ namespace AsterNET.Manager
{
if (enableEvents && internalEvent != null)
if (UseASyncEvents)
internalEvent.BeginInvoke(this, e, new AsyncCallback(eventComplete), null);
Task.Run(() => internalEvent.Invoke(this, e)).ContinueWith(eventComplete);
else
internalEvent.Invoke(this, e);
}