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:
@ -27,9 +27,9 @@ Backend::Backend(SERVER_REF *ref):
|
||||
|
||||
Backend::~Backend()
|
||||
{
|
||||
ss_dassert(m_closed);
|
||||
ss_dassert(m_closed || !in_use());
|
||||
|
||||
if (!m_closed)
|
||||
if (in_use())
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user