From 96b0b38a938906132373b727e0edfc3ab162b0b7 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Sun, 22 Mar 2020 11:50:18 -0400 Subject: [PATCH] . --- src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 1a73842..cd797a9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -68,7 +68,8 @@ export const emailServer = new SMTPServer({ callback(); })().catch(error => { console.error(error); - stream.end(() => callback(error)); + stream.resume(); + callback(error); }); } }).listen(process.env.NODE_ENV === "production" ? 25 : 2525);