Permalink
Browse files

finish connection if not finished

  • Loading branch information...
1 parent a76ac08 commit 254306b5bb803ce49f78cce4031c338f4033b6ee Kevin Burke committed Jan 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/db.rb
View
2 app/models/db.rb
@@ -49,7 +49,7 @@ def self.count(scope)
end
def self.close
- CONN.finish
+ CONN.finish unless CONN.finished?
end
end

0 comments on commit 254306b

Please sign in to comment.