make sure only one enumeration can run at once
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/HardwareWalletOperations.cs
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/HardwareWalletOperations.cs
@@ -49,7 +49,7 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet.HardwareWallet
{
if (device.Fingerprint is null)
{
- throw new Exception("Cannot be null.");
+ throw new Exception("Fingerprint cannot be null.");
}
var fingerPrint = (HDFingerprint) device.Fingerprint;
@@ -89,6 +89,11 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet.HardwareWallet
public void StartDetection()
{
+ if (DetectionTask?.Status == TaskStatus.WaitingForActivation)
+ {
+ return;
+ }
+
DetectionTask = RunDetectionAsync();
}

make sure only one enumeration can run at once