Remove try/f
MODIFY
WalletWasabi/WabiSabi/Client/CoinJoinClient.cs
WalletWasabi/WabiSabi/Client/CoinJoinClient.cs
@@ -85,8 +85,6 @@ namespace WalletWasabi.WabiSabi.Client
/// <param name="roundState">Defines the round parameter and state information to use.</param>
/// <returns>Whether or not the round resulted in a successful transaction.</returns>
public async Task<bool> StartRoundAsync(IEnumerable<SmartCoin> smartCoins, RoundState roundState, CancellationToken cancellationToken)
- {
- try
{
State = CoinJoinClientState.InProgress;
var constructionState = roundState.Assert<ConstructionState>();
@@ -141,13 +139,10 @@ namespace WalletWasabi.WabiSabi.Client
await SignTransactionAsync(registeredAliceClients, unsignedCoinJoin, cancellationToken).ConfigureAwait(false);
var finalRoundState = await RoundStatusUpdater.CreateRoundAwaiter(s => s.Id == roundState.Id && s.Phase == Phase.Ended, cancellationToken).ConfigureAwait(false);
+
+ State = finalRoundState.WasTransactionBroadcast ? CoinJoinClientState.Idle : CoinJoinClientState.InProgress;
return finalRoundState.WasTransactionBroadcast;
}
- finally
- {
- State = CoinJoinClientState.InProgress;
- }
- }
private async Task<ImmutableArray<AliceClient>> CreateRegisterAndConfirmCoinsAsync(IEnumerable<SmartCoin> smartCoins, RoundState roundState, CancellationToken cancellationToken)
{

Remove try/f