ThoreBor / Anki_Leaderboard

Anki 2.1 Add-On
https://ankiweb.net/shared/info/41708974
MIT License
53 stars 11 forks source link

Delay Upon Closing Anki #64

Closed nmeed closed 4 years ago

nmeed commented 4 years ago
Screen Shot 2020-04-30 at 12 47 40 AM

When I close Anki, it will remain in the dock (Mac) for a good 3-4 minutes after I close it. If I delete Leaderboard, it closes immediately as it always had. This only occurred after upgrading to 2.1.24. Leaderboard version 1.4.4. Also note, this only occurs if I open Leaderboard. If I just use Anki without actually opening Leaderboard, this issue does not arise. It's almost as if Leaderboard keeps on running or something preventing Anki from closing....

ThoreBor commented 4 years ago

Did you close the Leaderboard before closing Anki or was is still open?

ThoreBor commented 4 years ago

I was able to reproduce the issue when I closed Anki while the Leaderboard was still open. The reason for that is probably that the add-on is running on a background thread. You should be able to avoid this problem if you close the add-on before closing anki. However if this bothers you, just download the Leaderboard v.1.4.4b.ankiaddon file from github (see releases). I'll try to fix this in the next release.

nmeed commented 4 years ago

I did close Leaderboard before closing Anki. I also deleted the add-on and re-installed it several times in the hope it would fix the issue to no avail. I do not have this issue with 1.4.4b...thank you.

ThoreBor commented 4 years ago

Okay, thanks for letting me know.

ThoreBor commented 4 years ago

You could try if this fixes your problem. It worked for me.

https://drive.google.com/open?id=1b_QeVKs_W6Q4MXjZjnS-jkXkVPPJ-NMV

nmeed commented 4 years ago

You could try if this fixes your problem. It worked for me.

https://drive.google.com/open?id=1b_QeVKs_W6Q4MXjZjnS-jkXkVPPJ-NMV

Worked for me too! Thank you!

ThoreBor commented 4 years ago

Great, in the next update it'll be officially fixed then.