Reclaim tokens before exiting to avoid leaking tokens

This commit is contained in:
Michael Vines 2018-07-24 15:45:21 -07:00
parent 0206020104
commit aa2104a21b
1 changed files with 2 additions and 2 deletions

View File

@ -374,9 +374,9 @@ fn main() {
let time = Duration::new(time_sec, 0);
let now = Instant::now();
let mut reclaim_tokens_back_to_source_account = false;
while now.elapsed() < time {
while now.elapsed() < time || reclaim_tokens_back_to_source_account {
// ping-pong between source and destination accounts for each loop iteration
// this seems to be faster than trying to determine the balance of individaul
// this seems to be faster than trying to determine the balance of individual
// accounts
generate_and_send_txs(
&mut client,