Skip to content

Commit

Permalink
fix: use correct method for disconnecting smtp connections
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Feb 13, 2024
1 parent 42ab5b3 commit 7c23994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/postal/smtp_sender.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def start
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
Expand Down

0 comments on commit 7c23994

Please sign in to comment.