mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +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
|
||||
# raise an error.
|
||||
def close
|
||||
@db.close
|
||||
@db.closed? || @db.close
|
||||
self
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue