Increase number of veryfing updates immediately
Or we might notify the listeners too early.
This commit is contained in:
@@ -238,10 +238,10 @@ public class UpdaterController implements UpdaterControllerInt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void verifyUpdateAsync(final String downloadId) {
|
private void verifyUpdateAsync(final String downloadId) {
|
||||||
|
mVerifyingUpdates++;
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
mVerifyingUpdates++;
|
|
||||||
UpdateDownload update = mDownloads.get(downloadId).mUpdate;
|
UpdateDownload update = mDownloads.get(downloadId).mUpdate;
|
||||||
File file = update.getFile();
|
File file = update.getFile();
|
||||||
if (file.exists() && verifyPackage(file)) {
|
if (file.exists() && verifyPackage(file)) {
|
||||||
|
Reference in New Issue
Block a user