Perforce: Use QtcProcess instead of SynchronousProcess helpers

Change-Id: I1d6ef963a72a9ef3175c696bff9038faf5889311
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2021-05-04 07:33:24 +02:00
parent 8b4cd1e0aa
commit a570ab0e3c

View File

@@ -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;