forked from qt-creator/qt-creator
Perforce: Use QtcProcess instead of SynchronousProcess helpers
Change-Id: I1d6ef963a72a9ef3175c696bff9038faf5889311 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1350,8 +1350,8 @@ PerforceResponse PerforcePluginPrivate::fullySynchronousProcess(const QString &w
|
||||
QByteArray stdOut;
|
||||
QByteArray stdErr;
|
||||
const int timeOutS = (flags & LongTimeOut) ? m_settings.longTimeOutS() : m_settings.timeOutS.value();
|
||||
if (!SynchronousProcess::readDataFromProcess(process, timeOutS, &stdOut, &stdErr, true)) {
|
||||
SynchronousProcess::stopProcess(process);
|
||||
if (!process.readDataFromProcess(timeOutS, &stdOut, &stdErr, true)) {
|
||||
process.stopProcess();
|
||||
response.error = true;
|
||||
response.message = msgTimeout(timeOutS);
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user