reset to null in loop in case exit due to exceeding retry count

This commit is contained in:
Eric House 2013-01-26 21:17:46 -08:00
parent a9b459ea2e
commit cc69901632

View file

@ -413,8 +413,10 @@ CRefMgr::getCookieRef( CookieID cid, bool failOk )
break;
}
m_cidlock->Relinquish( cinfo, true );
logf( XW_LOGINFO, "%s: sleeping after failing to get cinfo", __func__ );
logf( XW_LOGINFO, "%s: (count=%d) sleeping after "
"failing to get cinfo", __func__, count );
usleep(200000); /* 2/10 second */
cinfo = NULL;
}
return cinfo;
} /* getCookieRef */