diff --git a/tabby-core/src/api/platform.ts b/tabby-core/src/api/platform.ts index d3898a2c..79362cb0 100644 --- a/tabby-core/src/api/platform.ts +++ b/tabby-core/src/api/platform.ts @@ -48,6 +48,9 @@ export abstract class FileTransfer { } protected increaseProgress (bytes: number): void { + if (!bytes) { + return + } this.completedBytes += bytes this.lastChunkSpeed = bytes * 1000 / (Date.now() - this.lastChunkStartTime) this.lastChunkStartTime = Date.now()