Clear session commands in Backend::close

If a reconnection would take place, the old commands would get executed.
This commit is contained in:
Markus Mäkelä 2019-05-31 08:47:47 +03:00
parent cb089f69e6
commit 6d089e3283
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -53,6 +53,7 @@ void Backend::close(close_type type)
{
m_closed = true;
m_closed_at = time(NULL);
m_session_commands.clear();
if (in_use())
{