Updates not applied first time
Brought to you by:
dougday
Hi, I am using version 0.72.1 (mostly works great) however I have an issue when an update is published, although the bootsrap exe recognises ther is an update it doesn't seem to apply them, you have to close the app down and then rerun it inorder for it to actually fetch and apply the new version.
Is anyone else having this problem or is it maybe a quirk of our crap network.
Anonymous
Duplicate, see Bug #2101354.
With this in mind, I was able to minimalize the issue by adding code that ensured downloads were completed prior to copy.
I added a private _IsSaved bool on the
FileDownloader, and a corresponding public method.
I then set the IsSaved = true; after the
{
lock
{
save file...
}
IsSaved = true;
}
Then in the Updater I added a wait while (!downloader.IsSaved).
I logged this and found that at times the last file was kinda quirky to
the gun. But this is a harsh fix... though it works. I am not sure what is
causing the finished to fire off prematurely.
More info in comments of the bug listed above.