Skip to content

Commit 59f55c4

Browse files
committed
1 parent 4aef419 commit 59f55c4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "emailjs-imap-client",
3-
"version": "2.0.7",
3+
"version": "2.0.8",
44
"homepage": "https://github.com/emailjs/emailjs-imap-client",
55
"description": "JavaScript IMAP client",
66
"author": "Andris Reinman <[email protected]>",

src/emailjs-imap-client-imap.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,10 @@
496496
this._incomingBuffers.push(buf);
497497
i = 0;
498498
} else {
499+
// clear the timeout when an entire command has arrived
500+
// and not waiting on more data for next command
501+
clearTimeout(this._socketTimeoutTimer);
502+
this._socketTimeoutTimer = null;
499503
return;
500504
}
501505
} else {
@@ -539,9 +543,6 @@
539543
continue;
540544
}
541545

542-
clearTimeout(this._socketTimeoutTimer); // clear the timeout when an entire command has arrived
543-
this._socketTimeoutTimer = null;
544-
545546
var response;
546547
try {
547548
response = imapHandler.parser(command);

0 commit comments

Comments
 (0)