File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
library/src/main/java/com/qiniu/android/storage Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ long uploadSize() {
89
89
void clearUploadState () {
90
90
etag = null ;
91
91
md5 = null ;
92
- state = State .WaitToUpload ;
92
+ state = State .NeedToCheck ;
93
93
}
94
94
95
95
void checkStateAndUpdate () {
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ private UploadBlock loadBlockData(UploadBlock block) throws IOException {
305
305
// 已经加载过 block 数据
306
306
// 没有需要上传的片 或者 有需要上传片但是已加载过片数据
307
307
UploadData nextUploadData = block .nextUploadDataWithoutCheckData ();
308
- if (nextUploadData .getState () == UploadData .State .WaitToUpload ) {
308
+ if (nextUploadData .getState () == UploadData .State .WaitToUpload && nextUploadData . data != null ) {
309
309
return block ;
310
310
}
311
311
You can’t perform that action at this time.
0 commit comments