yaqwsx / jlcparts

Better parametric search for components available for JLC PCB assembly
https://yaqwsx.github.io/jlcparts/
MIT License
572 stars 52 forks source link

Abnormally aborting the update phase causes it to register as "up to-date" #48

Open MarkJeronimus opened 2 years ago

MarkJeronimus commented 2 years ago

My internet is not very stable, and the update process often hangs (probably due to a network connection timeouts). When I refresh the page after I see it doesn't progress, the top banner claims that it's "up to-date", while it most probably is not.

If I let it progress for only a short while and open the page in a new tab, it shows as "up to-date", but when I close the first tab and refresh the second tab, it shows that I need to update. It's almost as if starting the update sets an 'up to-date' flag too early, and clears it when it detects that it's been aborted. I suspect the last step never gets properly executed when there are network issues.