Skip to content

Commit bca2eb4

Browse files
committed
Use #quit and #disconnect in SASLClientAdapter
1 parent 82db844 commit bca2eb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/smtp/auth_sasl_client_adapter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def authenticate(...)
3535
def host; client.address end
3636
def response_errors; RESPONSE_ERRORS end
3737
def sasl_ir_capable?; true end
38-
def drop_connection; client.finish end
39-
def drop_connection!; client.finish end
38+
def drop_connection; client.quit!(exception: :warn) end
39+
def drop_connection!; client.disconnect end
4040
end
4141
end
4242
end

0 commit comments

Comments
 (0)