From 2d3eb29bd5c2d869191ceaf60b6b9870063a0eb8 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Sat, 11 Jun 2022 19:10:08 -0600 Subject: [PATCH] Move event invoke out of lock --- Source/ApplicationServices/LibraryCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ApplicationServices/LibraryCommands.cs b/Source/ApplicationServices/LibraryCommands.cs index cd6165b5..cf56f163 100644 --- a/Source/ApplicationServices/LibraryCommands.cs +++ b/Source/ApplicationServices/LibraryCommands.cs @@ -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