1
0
drake 3 жил өмнө
parent
commit
4165465e8a

+ 1 - 1
net/src/main/java/com/drake/net/body/NetRequestBody.kt

@@ -29,7 +29,7 @@ class NetRequestBody(
     private val progressListeners: ConcurrentLinkedQueue<ProgressListener>? = null
 ) : RequestBody() {
 
-    private val progress: Progress by lazy { Progress() }
+    private val progress = Progress()
     private var bufferedSink: BufferedSink? = null
     val contentLength by lazy { requestBody.contentLength() }
 

+ 1 - 1
net/src/main/java/com/drake/net/body/NetResponseBody.kt

@@ -30,7 +30,7 @@ class NetResponseBody(
     private val complete: (() -> Unit)? = null
 ) : ResponseBody() {
 
-    private val progress: Progress by lazy { Progress() }
+    private val progress = Progress()
     private val bufferedSource by lazy { responseBody.source().progress().buffer() }
     private val contentLength by lazy { responseBody.contentLength() }