Fix slave reconnection regression

The state of the backend needs to be checked before any pending session
commands are executed on it.

Added debug assertions to catch invalid use of the status functions of
closed backends.
This commit is contained in:
Markus Mäkelä
2018-06-16 17:24:44 +03:00
parent 7a354bb28e
commit 1f166482b2
3 changed files with 9 additions and 4 deletions

View File

@ -100,6 +100,7 @@ public:
*/
inline bool has_session_commands() const
{
ss_dassert(in_use());
return !m_session_commands.empty();
}