You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DownloadInfo.java
void startIfReady(long now) a bug in this function
void startIfReady(long now) {
synchronized (this) {
if (!isReadyToStart(now)) { //set download paused will return
return;
}
if (Constants.LOGV) {
Log.v(Constants.TAG, "Service spawning thread to handle download " + mId + " mHasActiveThread=" + mHasActiveThread);
}
if (mHasActiveThread) {
return;
//throw new IllegalStateException("Multiple threads on same download");
}
if (mStatus != Downloads.STATUS_RUNNING) {
mStatus = Downloads.STATUS_RUNNING;
ContentValues values = new ContentValues();
values.put(Downloads.COLUMN_STATUS, mStatus);
mContext.getContentResolver().update(getAllDownloadsUri(), values, null, null);
if (Constants.LOGV) {
Log.v(Constants.TAG, "Service startIfReady return " + mId);
}
//click 'pause' button here, call pauseDownload(). After that, DownloadThread will never called for mId
//return;
}
DownloadThread downloader = new DownloadThread(mContext, mSystemFacade, this);
mHasActiveThread = true;
mSystemFacade.startThread(downloader);
}
}
The text was updated successfully, but these errors were encountered:
DownloadInfo.java
void startIfReady(long now) a bug in this function
void startIfReady(long now) {
synchronized (this) {
if (!isReadyToStart(now)) { //set download paused will return
return;
}
The text was updated successfully, but these errors were encountered: