double delay
This commit is contained in:
parent
be58861a59
commit
2a3c831e3f
|
@ -478,7 +478,7 @@ void *syncRetrieveData(void *param)
|
||||||
// if file is changed 3 times continuously, start flow control
|
// if file is changed 3 times continuously, start flow control
|
||||||
pPeer->numOfRetrieves++;
|
pPeer->numOfRetrieves++;
|
||||||
if (pPeer->numOfRetrieves >= 3 && pNode->notifyFlowCtrl)
|
if (pPeer->numOfRetrieves >= 3 && pNode->notifyFlowCtrl)
|
||||||
(*pNode->notifyFlowCtrl)(pNode->ahandle, pPeer->numOfRetrieves - 2);
|
(*pNode->notifyFlowCtrl)(pNode->ahandle, 1 << (pPeer->numOfRetrieves - 3));
|
||||||
} else {
|
} else {
|
||||||
pPeer->numOfRetrieves = 0;
|
pPeer->numOfRetrieves = 0;
|
||||||
if (pNode->notifyFlowCtrl)
|
if (pNode->notifyFlowCtrl)
|
||||||
|
|
Loading…
Reference in New Issue