mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
fix order of operations in sync
This commit is contained in:
parent
bf5865bc7b
commit
5e74b8d275
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class Sync(QThread):
|
||||||
# close and send signal to main thread
|
# close and send signal to main thread
|
||||||
self.deck.close()
|
self.deck.close()
|
||||||
taken = time.time() - start
|
taken = time.time() - start
|
||||||
if changes or srcChanged and taken < 2.5:
|
if (changes or srcChanged) and taken < 2.5:
|
||||||
time.sleep(2.5 - taken)
|
time.sleep(2.5 - taken)
|
||||||
else:
|
else:
|
||||||
time.sleep(0.25)
|
time.sleep(0.25)
|
||||||
|
|
Loading…
Reference in a new issue