Upstream maildev/maildev state of the touched files before f000b5e316
This commit is contained in:
1 parent
3f93b59a2e
commit
a9a83f64f1
10 files changed
+2167
-30
No files matched your search
@@ -100,7 +100,6 @@ export class RelayClient {
|
||||
|
||||
// Fail silently if no recipients
|
||||
if (recipients.length === 0) {
|
||||
emailStream.destroy()
|
||||
return {
|
||||
success: false,
|
||||
message: 'Email had no recipients after filtering',
|
||||
@@ -133,9 +132,6 @@ export class RelayClient {
|
||||
error: err,
|
||||
}
|
||||
} finally {
|
||||
// The stream holds an open file descriptor until it is fully read or
|
||||
// destroyed; on a failed relay it was never (fully) piped to the server.
|
||||
emailStream.destroy()
|
||||
await this.disconnect()
|
||||
}
|
||||
}
|
||||
@@ -160,10 +156,8 @@ export class RelayClient {
|
||||
debug: false,
|
||||
})
|
||||
|
||||
// A failed connection is reported here, not through the connect callback
|
||||
this.client.on('error', (err: Error) => {
|
||||
this.logger.error('SMTP Connection error:', err)
|
||||
reject(err)
|
||||
})
|
||||
|
||||
this.client.connect((err?: Error) => {
|
||||
|
||||
Reference in new issue
Block a user