mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
reset to null in loop in case exit due to exceeding retry count
This commit is contained in:
parent
a9b459ea2e
commit
cc69901632
1 changed files with 3 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue