Skip to content

Commit

Permalink
fix(webapp): file error recv
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Apr 30, 2022
1 parent 2940712 commit 4a9d032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/libfgg/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ export default class Transfer {
this.hash.append(buffer)
const c = buffer.byteLength
this.onProgress(c)
this.count += c
if (this.count >= this.metaFile.size) {
this.onComplete()
this.complete = true
//this.file.close()
complete()
}
this.count += c

callback(buffer)
})
Expand Down

0 comments on commit 4a9d032

Please sign in to comment.