mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix: handle connectivity errors in Payjoin session operations
This commit is contained in:
parent
5cc6c75904
commit
be61f0ca27
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,8 @@ abstract class BitcoinWalletAddressesBase extends ElectrumWalletAddresses with S
|
|||
payjoinManager.resumeSessions();
|
||||
} catch (e) {
|
||||
printV(e);
|
||||
// Ignore Connectivity errors
|
||||
if (!e.toString().contains("error sending request for url")) rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -79,6 +81,8 @@ abstract class BitcoinWalletAddressesBase extends ElectrumWalletAddresses with S
|
|||
payjoinManager.spawnReceiver(receiver: currentPayjoinReceiver!);
|
||||
} catch (e) {
|
||||
printV(e);
|
||||
// Ignore Connectivity errors
|
||||
if (!e.toString().contains("error sending request for url")) rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue