Skip to content

Commit 834a19a

Browse files
committed
change QueueTaskRunner executeOnExecutor
1 parent 52512ea commit 834a19a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

VideoOS/VenvyLibrary/src/main/java/cn/com/venvy/common/download/QueueTaskRunner.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import java.util.LinkedList;
1111
import java.util.List;
1212
import java.util.Queue;
13+
import java.util.concurrent.Executors;
1314

1415
import cn.com.venvy.common.utils.VenvyLog;
1516
import cn.com.venvy.common.utils.VenvyUIUtil;
@@ -128,7 +129,8 @@ protected void onPostExecute(Void aVoid) {
128129
mIsWorking = false;
129130
}
130131
};
131-
mAsyncTask.execute();
132+
// mAsyncTask.execute();
133+
mAsyncTask.executeOnExecutor(Executors.newCachedThreadPool());
132134
} else {
133135
execNextTask();
134136
mAsyncTask = null;

0 commit comments

Comments
 (0)