Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
KenLSM committed Jun 27, 2024
1 parent f95a0c1 commit e4c1e24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ const useDecryptionWorkers = ({
// Ensure attachments downloads are spaced out to avoid browser blocking downloads
if (progress % ATTACHMENT_DOWNLOAD_CONVOY_SIZE === 0) {
const now = new Date().getTime()
const elaspedSinceXDownloads =
const elapsedSinceXDownloads =
now - timeSinceLastXAttachmentDownload

const waitTime = Math.max(
0,
ATTACHMENT_DOWNLOAD_CONVOY_MINIMUM_SEPARATION_TIME -
elaspedSinceXDownloads,
elapsedSinceXDownloads,
)
if (waitTime > 0) {
await waitForMs(waitTime)
Expand Down

0 comments on commit e4c1e24

Please sign in to comment.