MozillaStore#close: Do not call SQLite3::Database#close if already closed.

This commit is contained in:
Akinori MUSHA 2013-04-15 23:57:35 +09:00
parent 8e40fc3028
commit 25dd32219f

View file

@ -73,7 +73,7 @@ class HTTP::CookieJar
# Closes the SQLite3 database. After closing, any operation may
# raise an error.
def close
@db.close
@db.closed? || @db.close
self
end