Method: Auger::Connection#try_close
- Defined in:
- lib/auger/connection.rb
#try_close(conn) ⇒ Object
safe way to call plugin close() (rescue if the connection did not exist)
63 64 65 66 67 68 69 70 |
# File 'lib/auger/connection.rb', line 63 def try_close(conn) begin self.close(conn) @gateway.shutdown! if @gateway rescue => e e end end |