wallet: cancel tx on wallet sync finish
This commit is contained in:
parent
78ba870dbc
commit
0765cb8e30
1 changed files with 4 additions and 0 deletions
|
@ -914,6 +914,10 @@ impl Wallet {
|
||||||
|
|
||||||
let wallet = self.clone();
|
let wallet = self.clone();
|
||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
|
// Wait sync to finish.
|
||||||
|
if wallet.syncing() {
|
||||||
|
thread::sleep(Duration::from_millis(1000));
|
||||||
|
}
|
||||||
let instance = wallet.instance.clone().unwrap();
|
let instance = wallet.instance.clone().unwrap();
|
||||||
cancel_tx(instance, None, &None, Some(id), None).unwrap();
|
cancel_tx(instance, None, &None, Some(id), None).unwrap();
|
||||||
// Setup posting flag, and ability to finalize.
|
// Setup posting flag, and ability to finalize.
|
||||||
|
|
Loading…
Reference in a new issue