Skip to content

Commit

Permalink
Remove reply timeout timer in user info response handler
Browse files Browse the repository at this point in the history
Also increased number of album images we query per one round
  • Loading branch information
Antti Seppälä committed Oct 8, 2015
1 parent 99521fa commit d04ecb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/onedrive/onedrive-images/onedriveimagesyncadaptor.cpp
Expand Up @@ -196,7 +196,7 @@ void OneDriveImageSyncAdaptor::requestImages(int accountId, const QString &acces
const QString &albumId, const QString &userId,
int imageCount, const QString &nextRound)
{
QString path = nextRound.isEmpty() ? QStringLiteral("%1/files/?filter=photos&limit=100").arg(albumId)
QString path = nextRound.isEmpty() ? QStringLiteral("%1/files/?filter=photos&limit=400").arg(albumId)
: nextRound;

QUrl url(QStringLiteral("%1/%2&access_token=%3&").arg(api()).arg(path).arg(accessToken));
Expand Down Expand Up @@ -517,6 +517,7 @@ void OneDriveImageSyncAdaptor::userFinishedHandler()
int accountId = reply->property("accountId").toInt();
disconnect(reply);
reply->deleteLater();
removeReplyTimeout(accountId, reply);

bool ok = false;
QJsonObject parsed = parseJsonObjectReplyData(replyData, &ok);
Expand Down

0 comments on commit d04ecb1

Please sign in to comment.