Skip to content

Commit 42a7b4a

Browse files
authored
fix(pop3top): ZMSA-55: fix POP3 TOP -ERR write after end (#938)
1 parent 538b22e commit 42a7b4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pop3.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ const serverOptions = {
267267

268268
// ends all streams and cleans up
269269
limiter.abort = () => {
270-
response.value.end();
270+
response.value.abort(); // abort rebuilder
271+
response.value.unpipe(limiter);
271272
limiter.end();
272273
};
273274

0 commit comments

Comments
 (0)