mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Email - nsure imap tries to disconnect nicely first.... then destroy
to close #784
This commit is contained in:
@@ -506,7 +506,11 @@ module.exports = function(RED) {
|
||||
if (this.interval_id != null) {
|
||||
clearTimeout(this.interval_id);
|
||||
}
|
||||
if (imap) { imap.destroy(); }
|
||||
if (imap) {
|
||||
imap.end();
|
||||
setTimeout(function() { imap.destroy(); },1000);
|
||||
node.status({});
|
||||
}
|
||||
});
|
||||
|
||||
function setInputRepeatTimeout() {
|
||||
|
Reference in New Issue
Block a user