Increase number of veryfing updates immediately

Or we might notify the listeners too early.
This commit is contained in:
Gabriele M
2017-07-08 21:39:10 +02:00
parent c0bf32c097
commit 4979c4d78d

View File

@@ -238,10 +238,10 @@ public class UpdaterController implements UpdaterControllerInt {
}
private void verifyUpdateAsync(final String downloadId) {
mVerifyingUpdates++;
new Thread(new Runnable() {
@Override
public void run() {
mVerifyingUpdates++;
UpdateDownload update = mDownloads.get(downloadId).mUpdate;
File file = update.getFile();
if (file.exists() && verifyPackage(file)) {