Fix debug assertion in backend.cc

The Backend should be closed in the destructor if it was in use but was
not closed.
This commit is contained in:
Markus Mäkelä
2017-06-16 08:34:24 +03:00
parent 7a98e6d050
commit e5f6d00fda

View File

@ -27,9 +27,9 @@ Backend::Backend(SERVER_REF *ref):
Backend::~Backend() Backend::~Backend()
{ {
ss_dassert(m_closed); ss_dassert(m_closed || !in_use());
if (!m_closed) if (in_use())
{ {
close(); close();
} }