forked from qt-creator/qt-creator
VCS: Allow unlimited timeout
Change-Id: I1544b6ed01e7f7d8aeaaef57c40d1f6afc83a664 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
42ca9a127b
commit
7aed61fa21
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user