Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisDemyanko committed Jun 11, 2020
1 parent cc90ac3 commit 1c6099a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,9 @@ extension OpenWalletProgressViewController : WalletModelDelegate {
}

let percent = (Float64(done) / Float64(total)) * Float64(100)

print(percent)

if done == total {
if done == total || percent >= 99.9 {
if !strongSelf.stopRestore {
print("stop")

strongSelf.stopRestore = true

let deadlineTime = DispatchTime.now() + .seconds(4)
Expand Down

0 comments on commit 1c6099a

Please sign in to comment.