Missing timeout limit.

#	../../../RippleLedger265050/
This commit is contained in:
JoelKatz
2013-03-29 16:15:56 -07:00
parent 0578034d74
commit 89fb28ff1d

View File

@@ -45,6 +45,13 @@ void TransactionAcquire::done()
void TransactionAcquire::onTimer(bool progress)
{
if (getTimeouts() > 10)
{
cLog(lsWARNING) << "Giving up on TX set " << getHash();
mFailed = true;
done();
return;
}
if (!getPeerCount())
{ // out of peers
cLog(lsWARNING) << "Out of peers for TX set " << getHash();