VCS: Allow unlimited timeout

Change-Id: I1544b6ed01e7f7d8aeaaef57c40d1f6afc83a664
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-02-28 13:09:01 +02:00
committed by Orgad Shaneh
parent 42ca9a127b
commit 7aed61fa21

View File

@@ -247,7 +247,8 @@ void Command::run()
process->closeWriteChannel();
const int timeOutSeconds = d->m_jobs.at(j).timeout;
if (!Utils::SynchronousProcess::readDataFromProcess(*process, timeOutSeconds * 1000,
if (!Utils::SynchronousProcess::readDataFromProcess(*process,
timeOutSeconds >= 0 ? timeOutSeconds * 1000 : -1,
&stdOut, &stdErr, false)) {
Utils::SynchronousProcess::stopProcess(*process);
ok = false;