1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-06-24 01:49:36 +02:00

Bugfix: need to re-check proc for NULL

This commit is contained in:
Sirius Bakke
2014-10-30 10:33:00 +01:00
parent 99c5f2d727
commit 5adfa724ed

View File

@@ -301,7 +301,8 @@ void SSHSession::terminate()
// this processes events and lets QProcess send signal finished()
// in case user hit Cancel at just right time when background process
// already exited but QProcess has not noticed this yet.
proc->waitForFinished(100);
if (proc != NULL)
proc->waitForFinished(100);
}
// If QProcess sent signal finished() while we were waiting in