mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
MozillaStore#close: Do not call SQLite3::Database#close if already closed.
This commit is contained in:
parent
8e40fc3028
commit
25dd32219f
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ class HTTP::CookieJar
|
||||||
# Closes the SQLite3 database. After closing, any operation may
|
# Closes the SQLite3 database. After closing, any operation may
|
||||||
# raise an error.
|
# raise an error.
|
||||||
def close
|
def close
|
||||||
@db.close
|
@db.closed? || @db.close
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue