Fix two small bugs.

This commit is contained in:
JoelKatz
2013-04-25 13:49:41 -07:00
parent c785bb3673
commit 380ab0d3fd
2 changed files with 5 additions and 3 deletions

View File

@@ -2094,7 +2094,7 @@ bool NetworkOPs::getFetchPack(const uint256& hash, std::vector<unsigned char>& d
bool NetworkOPs::shouldFetchPack()
{
uint32 now = getNetworkTimeNC();
if (mLastFetchPack == now)
if ((mLastFetchPack == now) || ((mLastFetchPack + 1) == now))
return false;
mFetchPack.sweep();
if (mFetchPack.getCacheSize() > 384)