aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db/UpnpDatabasePlugin.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx
index 257797d1a..48dff67ae 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -163,9 +163,6 @@ UpnpDatabase::Configure(const config_param &, Error &)
bool
UpnpDatabase::Open(Error &error)
{
- if (m_root)
- return true;
-
m_lib = LibUPnP::getLibUPnP(error);
if (!m_lib)
return false;
@@ -186,8 +183,7 @@ UpnpDatabase::Open(Error &error)
void
UpnpDatabase::Close()
{
- if (m_root)
- delete m_root;
+ delete m_root;
// TBD decide what we do with the lib and superdir objects
}