diff --git a/src/sync/src/syncRetrieve.c b/src/sync/src/syncRetrieve.c index b3908d2c576d8fead0a2d3dd14a613f946ea5ff7..8aa7d101e7c3e1ba1fda6d26817d07871dbb6d03 100644 --- a/src/sync/src/syncRetrieve.c +++ b/src/sync/src/syncRetrieve.c @@ -477,8 +477,8 @@ void *syncRetrieveData(void *param) if (pPeer->fileChanged) { // if file is changed 3 times continuously, start flow control pPeer->numOfRetrieves++; - if (pPeer->numOfRetrieves >= 3 && pNode->notifyFlowCtrl) - (*pNode->notifyFlowCtrl)(pNode->ahandle, 1 << (pPeer->numOfRetrieves - 3)); + if (pPeer->numOfRetrieves >= 2 && pNode->notifyFlowCtrl) + (*pNode->notifyFlowCtrl)(pNode->ahandle, 4 << (pPeer->numOfRetrieves - 2)); } else { pPeer->numOfRetrieves = 0; if (pNode->notifyFlowCtrl)