浏览代码

download thread count set 1

billyyoyo 5 年之前
父节点
当前提交
e3da6fcee8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/com/sheep/gamegroup/util/DownloadUtil.java

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/util/DownloadUtil.java

@@ -399,7 +399,7 @@ public class DownloadUtil {
         // set the flush buffer to 32768 bytes for the buffered output-stream.(default is 16384)
         builder.setFlushBufferSize(32768);
         // set this task allow using 5 connections to download data.
-        builder.setConnectionCount(8);
+        builder.setConnectionCount(1);
         // build the task.
 //        DownloadTask task = builder.build();
         return builder.build();