Skip to content

Commit

Permalink
fix: reset functionality on error while listing FTP files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jboucly committed Dec 10, 2024
1 parent d1fc189 commit 17c56df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ module.exports = NodeHelper.create({
ftp.list(async function (err, list) {
if (err) {
console.warn('Error while listing files', err);
self.reset();
throw err;
}

Expand Down

0 comments on commit 17c56df

Please sign in to comment.