Skip to content

Commit

Permalink
#21 check for finished?
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 25, 2019
1 parent 156ffe2 commit b5f405d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pgtk/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def connect
begin
yield conn
rescue StandardError => e
conn.close
conn.close unless conn.finished?
conn = @wire.connection
raise e
ensure
Expand Down

0 comments on commit b5f405d

Please sign in to comment.