Skip to content

Commit

Permalink
Fix ICE in crystal-sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardiff committed Sep 8, 2020
1 parent 1576600 commit d0050eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/pool.cr
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ module DB
begin
sleep @retry_delay if i >= current_available
return yield
rescue e : ConnectionLost
rescue e : ConnectionLost(T)
# if the connection is lost close it to release resources
# and remove it from the known pool.
sync { delete(e.connection) }
Expand Down

0 comments on commit d0050eb

Please sign in to comment.