Skip to content

Commit

Permalink
Fix freeze when download contains no files
Browse files Browse the repository at this point in the history
Yes, I know that these lines should get pulled into a separate function, but I'm lazy.
  • Loading branch information
out386 committed Apr 8, 2019
1 parent b161e6e commit 4ab7378
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,12 @@ function initAria2 () {
});
} else {
console.log('onDownloadComplete: No files');
var reason = 'Upload failed. Could not get files.';
sendMessageReplyOriginal(reason);
updateAllStatus(reason);
deleteOrigReply();
msgTools.notifyExternal(false, gid, dlVars.tgChatId);
downloadUtils.cleanupDownload();
}
});
});
Expand Down

3 comments on commit 4ab7378

@akhilnarang
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proo

@out386
Copy link
Owner Author

@out386 out386 commented on 4ab7378 Apr 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nealgosalia, when bored and wondering what to do, feel free to clean up my mess 😅

@nealgosalia
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish I knew JS

Please sign in to comment.