Adjust conversion timeout according to number of pages

...super conservative for now.
This commit is contained in:
Anton Thomasson 2020-07-30 21:41:58 +02:00
parent 61fd1e5775
commit 406c92c9a4

View file

@ -149,7 +149,7 @@ void ConvertWorker::convertPdf(QNetworkRequest request, QString filename, QTempo
qDebug() << "Started";
if(!pdftops->waitForFinished())
if(!pdftops->waitForFinished(10000+5000*pages))
{
qDebug() << "pdftops failed";
tempfile->deleteLater();
@ -226,7 +226,7 @@ void ConvertWorker::convertPdf(QNetworkRequest request, QString filename, QTempo
qDebug() << "All started";
if(!ppm2pwg->waitForFinished())
if(!ppm2pwg->waitForFinished(10000+5000*pages))
{
qDebug() << "ppm2pwg failed";
tempfile->deleteLater();