Move event invoke out of lock

This commit is contained in:
Michael Bucari-Tovo 2022-06-11 19:10:08 -06:00
parent 26f0ff62df
commit 2d3eb29bd5

View File

@ -35,8 +35,8 @@ namespace ApplicationServices
{
if (Scanning)
return new();
ScanBegin?.Invoke(null, accounts.Length);
}
ScanBegin?.Invoke(null, accounts.Length);
//These are the minimum response groups required for the
//library scanner to pass all validation and filtering.
@ -108,8 +108,8 @@ namespace ApplicationServices
{
if (Scanning)
return (0, 0);
ScanBegin?.Invoke(null, accounts.Length);
}
ScanBegin?.Invoke(null, accounts.Length);
logTime($"pre {nameof(scanAccountsAsync)} all");
var libraryOptions = new LibraryOptions