disable try-lock on IBD

This commit is contained in:
Evan Duffield 2015-08-03 12:05:19 -07:00
parent e0031a807e
commit c7077dc9d4

View File

@ -4885,7 +4885,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
vRecv >> block;
TRY_LOCK(cs_main, lockMainBlock);
if(!lockMainBlock) {
if(!lockMainBlock && masternodeSync.IsBlockchainSynced()) {
LogPrintf("block -- failed to lock cs_main - %s\n", block.GetHash().ToString());
return false;
}