diff options
author | Max Kellermann <max@musicpd.org> | 2020-05-05 19:00:53 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-05-05 19:00:53 +0200 |
commit | ba576ffa379e0521c2fa7ba4a24099c48d032ced (patch) | |
tree | da20b1895ae8604b8141adaeb554a0da874cd144 /src/db | |
parent | dae8da7066f42367bb32ffeb5d64e2f7f721a245 (diff) | |
parent | 209364adf2c143d2979f95f748b9aef642bde0d9 (diff) |
Merge branch 'v0.21.x'
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx index b9bdeff55..c0dff9cc2 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx @@ -448,12 +448,7 @@ SimpleDatabase::Mount(const char *local_uri, const char *storage_uri) // TODO: update the new database instance? - try { - Mount(local_uri, std::move(db)); - } catch (...) { - db->Close(); - throw; - } + Mount(local_uri, std::move(db)); } inline DatabasePtr |