Commit 88ab0ccb authored by Christian Kandeler's avatar Christian Kandeler

SSH: Fix wrongly emitted assert.

Change-Id: Ib19030ccbf708a7ad738df89f3fc0a45b0052bb9
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 2c5b4b9b
......@@ -262,12 +262,13 @@ void AbstractSshChannel::closeChannel()
if (m_state == Inactive) {
setChannelState(Closed);
} else {
const ChannelState oldState = m_state;
setChannelState(CloseRequested);
if (m_remoteChannel != NoChannel) {
m_sendFacility.sendChannelEofPacket(m_remoteChannel);
m_sendFacility.sendChannelClosePacket(m_remoteChannel);
} else {
QSSH_ASSERT(m_state == SessionRequested);
QSSH_ASSERT(oldState == SessionRequested);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment