imapflow 1.0.104 → 1.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/imap-flow.js +5 -1
- package/package.json +1 -1
package/lib/imap-flow.js
CHANGED
|
@@ -2620,6 +2620,9 @@ class ImapFlow extends EventEmitter {
|
|
|
2620
2620
|
|
|
2621
2621
|
unbind() {
|
|
2622
2622
|
this.socket.unpipe(this.streamer);
|
|
2623
|
+
if (this._inflate) {
|
|
2624
|
+
this._inflate.unpipe(this.streamer);
|
|
2625
|
+
}
|
|
2623
2626
|
|
|
2624
2627
|
this.socket.removeListener('error', this._socketError);
|
|
2625
2628
|
this.socket.removeListener('close', this._socketClose);
|
|
@@ -2628,7 +2631,8 @@ class ImapFlow extends EventEmitter {
|
|
|
2628
2631
|
this.socket.removeListener('timeout', this._socketTimeout);
|
|
2629
2632
|
|
|
2630
2633
|
return {
|
|
2631
|
-
|
|
2634
|
+
readSocket: this._inflate || this.socket,
|
|
2635
|
+
writeSocket: this.writeSocket || this.socket
|
|
2632
2636
|
};
|
|
2633
2637
|
}
|
|
2634
2638
|
}
|