dbg
This commit is contained in:
@@ -250,7 +250,9 @@ export default class Updater {
|
|||||||
progressCallback(`Sending (${Math.floor((this._fileProgress *100)/this._fileSize)}%), ${this._fileProgress} / ${this._fileSize}`);
|
progressCallback(`Sending (${Math.floor((this._fileProgress *100)/this._fileSize)}%), ${this._fileProgress} / ${this._fileSize}`);
|
||||||
} else if (dataView[0] == 2) {
|
} else if (dataView[0] == 2) {
|
||||||
// done logic
|
// done logic
|
||||||
if (this._fileProgress >= this._fileSize) {
|
console.log(`progress >= filesize: ${this._fileProgress} vs ${this._fileSize}`);
|
||||||
|
if (this._fileProgress >= this._fileSize) {
|
||||||
|
console.log("true");
|
||||||
// send agree
|
// send agree
|
||||||
await this.sendEndCmd(true);
|
await this.sendEndCmd(true);
|
||||||
progressCallback(`Complete!`);
|
progressCallback(`Complete!`);
|
||||||
@@ -265,6 +267,7 @@ export default class Updater {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
console.log("False");
|
||||||
// send disagree
|
// send disagree
|
||||||
await this.sendEndCmd(false);
|
await this.sendEndCmd(false);
|
||||||
progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`);
|
progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user