{
this.ServiceLogMessage("Stopping Scan ...");
this.IsScanning = false;
- this.instance.StopScan();
- this.ServiceLogMessage("Scan Stopped ...");
+ this.instance.StopScan();
}
catch (Exception exc)
{
finally
{
this.ScanCompleted?.Invoke(this, new ScanCompletedEventArgs(this.isCancelled, null, null, null));
+ this.ServiceLogMessage("Scan Stopped ...");
}
}
/// </param>\r
private void ScanCompleted(object sender, ScanCompletedEventArgs e)\r
{\r
+ this.ShowStatusWindow = false;\r
+\r
if (e.ScannedSource != null && !e.Cancelled)\r
{\r
if (this.ScannedSource == null)\r
\r
Execute.OnUIThread(() =>\r
{\r
- this.ShowStatusWindow = false;\r
-\r
- if (e.Successful)\r
+ if (e.Successful && this.ScannedSource != null)\r
{\r
this.NotifyOfPropertyChange(() => this.ScannedSource);\r
this.NotifyOfPropertyChange(() => this.ScannedSource.Titles);\r