Fix debug assertion on inconsistent sescmd result
The slave backend would be closed twice if it would both respond with a different result and be closed due to a hangup before the master responded. Added a test case that reproduced the problem.
This commit is contained in:
@ -65,7 +65,7 @@ static void discard_if_response_differs(SRWBackend backend,
|
||||
uint8_t slave_response,
|
||||
SSessionCommand sescmd)
|
||||
{
|
||||
if (master_response != slave_response)
|
||||
if (master_response != slave_response && backend->in_use())
|
||||
{
|
||||
uint8_t cmd = sescmd->get_command();
|
||||
std::string query = sescmd->to_string();
|
||||
|
Reference in New Issue
Block a user