Do not add DownloadInfo to wait list when addDownloadInfo

This commit is contained in:
seven332 committed 2016-03-15 00:07:14 +08:00
1 parent 8263ead395
commit f3b442fbcd
1 file changed
+1 -4
@@ -332,7 +332,7 @@ public class DownloadManager implements SpiderQueen.OnSpiderListener {
// Set state DownloadInfo.STATE_WAIT
info.state = DownloadInfo.STATE_WAIT;
// Add to wait list
waitList.addLast(info);
waitList.add(info);
// Update in DB
EhDB.putDownloadInfo(info);
}
@@ -372,9 +372,6 @@ public class DownloadManager implements SpiderQueen.OnSpiderListener {
mAllInfoList.addFirst(info);
mAllInfoMap.put(galleryInfo.gid, info);
// Add to wait list
mWaitList.add(info);
// Save to
EhDB.putDownloadInfo(info);