lib/emailer/smtp_facade.rb in erikhansson-emailer-0.1.1 vs lib/emailer/smtp_facade.rb in erikhansson-emailer-0.1.2
- old
+ new
@@ -77,10 +77,10 @@
settings[:authentication]
)
end
def close_connection
- @connection.finish if @connection
+ @connection.finish if @connection && @connection.started?
@connection = @open = nil
end
end
end