fix duplicate _connection->remove call on ConnectionImpl objects that were already destroyed, but didn't detach in case of errors

This commit is contained in:
tilsche 2019-03-04 16:53:31 +01:00
parent 180eae10b6
commit d3f35fb524
1 changed files with 1 additions and 0 deletions

View File

@ -846,6 +846,7 @@ void ChannelImpl::reportError(const char *message, bool notifyhandler)
// the connection no longer has to know that this channel exists,
// because the channel ID is no longer in use
if (_connection) _connection->remove(this);
_connection = nullptr;
}
/**