forked from qt-creator/qt-creator
SshRemoteProcessRunner: Get rid of no-op call to QtcProcess::terminate()
Calling QtcProcess::terminate() after disconecting from process signals is a task for implicit ProcessReaper. Delete the process instead. Change-Id: I02d9b892125b1a1053aefe8edbc7bc96bac41381 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -158,11 +158,8 @@ void SshRemoteProcessRunner::setState(int newState)
|
|||||||
|
|
||||||
d->m_state = static_cast<State>(newState);
|
d->m_state = static_cast<State>(newState);
|
||||||
if (d->m_state == Inactive) {
|
if (d->m_state == Inactive) {
|
||||||
if (d->m_process) {
|
if (d->m_process)
|
||||||
disconnect(d->m_process.get(), nullptr, this, nullptr);
|
|
||||||
d->m_process->terminate();
|
|
||||||
d->m_process.reset();
|
d->m_process.reset();
|
||||||
}
|
|
||||||
if (d->m_connection) {
|
if (d->m_connection) {
|
||||||
disconnect(d->m_connection, nullptr, this, nullptr);
|
disconnect(d->m_connection, nullptr, this, nullptr);
|
||||||
SshConnectionManager::releaseConnection(d->m_connection);
|
SshConnectionManager::releaseConnection(d->m_connection);
|
||||||
|
Reference in New Issue
Block a user