test that address is good each time through loop

This commit is contained in:
Eric House 2013-07-05 08:03:03 -07:00
parent 23c66e93ab
commit 2cd84c4229

View file

@ -857,12 +857,11 @@ void
CookieRef::send_stored_messages( HostID dest, const AddrInfo* addr )
{
logf( XW_LOGVERBOSE0, "%s(dest=%d)", __func__, dest );
assert( dest > 0 && dest <= 4 );
if ( addr->isCurrent() ) {
DBMgr* dbmgr = DBMgr::Get();
const char* cname = ConnName();
for ( ; ; ) {
while ( addr->isCurrent() ) {
unsigned char buf[MAX_MSG_LEN];
size_t buflen = sizeof(buf);
int msgID;
@ -872,7 +871,6 @@ CookieRef::send_stored_messages( HostID dest, const AddrInfo* addr )
}
dbmgr->RemoveStoredMessages( &msgID, 1 );
}
}
} /* send_stored_messages */
bool