set file progress rather than adding
This commit is contained in:
@@ -288,7 +288,7 @@ export default class Updater {
|
|||||||
else {
|
else {
|
||||||
// should be the file progress
|
// should be the file progress
|
||||||
let fileProgressView = new Uint32Array(rawData);
|
let fileProgressView = new Uint32Array(rawData);
|
||||||
this._fileProgress += (dataView[3] << 24) |
|
this._fileProgress = (dataView[3] << 24) |
|
||||||
(dataView[2] << 16) |
|
(dataView[2] << 16) |
|
||||||
(dataView[1] << 8) | dataView[0];
|
(dataView[1] << 8) | dataView[0];
|
||||||
this.sendNextPacket();
|
this.sendNextPacket();
|
||||||
|
|||||||
Reference in New Issue
Block a user