forked from qt-creator/qt-creator
SSH: Fix wrongly emitted assert.
Change-Id: Ib19030ccbf708a7ad738df89f3fc0a45b0052bb9 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user