mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	Fix download buffer overflow
This commit is contained in:
		| @@ -96,6 +96,7 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, long[], Void> { | ||||
|         double lastProgressValue=0; | ||||
|         while ((bytesRead = source.read(sink.buffer(), DOWNLOAD_CHUNK_SIZE)) != -1) { | ||||
|             totalRead += bytesRead; | ||||
|             sink.emit(); | ||||
|             if (UpdateContext.DEBUG) { | ||||
|                 Log.d("RNUpdate", "Progress " + totalRead + "/" + contentLength); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sunny Luo
					Sunny Luo