Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Email Trigger (IMAP) Node): Ensure connection close does not block deactivation #10689

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Sep 5, 2024

@tomi tomi added the release/backport Changes that need to be backported to older releases. label Sep 6, 2024
}
try {
if (connection.closeBox) await connection.closeBox(false);
connection.end();
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the connection.end be in a finally block?

Copy link
Contributor Author

@ivov ivov Sep 6, 2024

Choose a reason for hiding this comment

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

This and this cannot fail? If so then yes

Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

Copy link

cypress bot commented Sep 6, 2024

n8n    Run #6768

Run Properties:  status check passed Passed #6768  •  git commit a533149f49: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Project n8n
Branch Review pay-1919-imap-connection-closed-unexpectedly
Run status status check passed Passed #6768
Run duration 04m 33s
Commit git commit a533149f49: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Committer Iván Ovejero
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 424
View all changes introduced in this branch ↗︎

Copy link
Contributor

github-actions bot commented Sep 6, 2024

✅ All Cypress E2E specs passed

@ivov ivov merged commit 156eb72 into master Sep 6, 2024
46 of 48 checks passed
@ivov ivov deleted the pay-1919-imap-connection-closed-unexpectedly branch September 6, 2024 10:07
tomi pushed a commit that referenced this pull request Sep 6, 2024
@github-actions github-actions bot mentioned this pull request Sep 6, 2024
@janober
Copy link
Member

janober commented Sep 6, 2024

Got released with [email protected]

@github-actions github-actions bot mentioned this pull request Sep 11, 2024
riascho pushed a commit that referenced this pull request Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/backport Changes that need to be backported to older releases. Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants