mirror of
https://github.com/postalserver/postal.git
synced 2026-10-19 10:46:32 +00:00
fix: use correct method for disconnecting smtp connections
This commit is contained in:
@@ -83,7 +83,7 @@ module Postal
|
||||
log "Cannot connect to #{@remote_ip}:#{port} (#{hostname}) (#{e.class}: #{e.message})"
|
||||
@connection_errors << e.message unless @connection_errors.include?(e.message)
|
||||
begin
|
||||
smtp_client.disconnect
|
||||
smtp_client.finish
|
||||
rescue StandardError
|
||||
nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user