Comparing version 1.0.25 to 1.0.26
@@ -22,6 +22,12 @@ 'use strict'; | ||
connection.preCheck = async () => { | ||
connection.preCheck = false; // unset itself | ||
connection.write('DONE'); | ||
connection.log.debug({ src: 'c', msg: `breaking IDLE` }); | ||
connection.idling = false; | ||
await new Promise(resolve => { | ||
// small delay to make sure we do not call preCheck before command is actually executed | ||
setImmediate(() => { | ||
connection.preCheck = false; // unset itself | ||
connection.write('DONE'); | ||
connection.log.debug({ src: 'c', msg: `breaking IDLE` }); | ||
connection.idling = false; | ||
resolve(); | ||
}); | ||
}); | ||
}; | ||
@@ -28,0 +34,0 @@ |
{ | ||
"name": "imapflow", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "IMAP Client for Node", | ||
@@ -5,0 +5,0 @@ "main": "./lib/imap-flow.js", |
470945
10756