phil-rice/SoftwareFm — Issue #22: Spamming refresh causes problem
Author: martin-rice
Created: 2012-01-14 08:52:53+00:00
State: open

As the title says, if you spam refresh a number of strange issues can occur. If you were quick you could probably recreate this with the nuke and clicking on the url navigator. I am not quick enough...

Until the refresh button the only way that data was added to .sfm was with the 'get' operation. This was monotonic, and there was a mechanism to stop two threads adding the same thing.

Refresh however includes a get as well as destroying the local file. So if an early thread is in the middle of a get, and a later thread is deleting the directory, then exceptions happen. There are probably other issues too.

Options
* Synchronize everything, and enter lock-hell or ultra slow gui
* put up a model window, and show what is happening (wait for existing queries to finish, deleting, getting, finished...) then vanish
* others to be considered