bladeRF: Fixed incorrectly placed 'else'

This addresses a defect introduced in 6e75abf which causes the
_consecutive_failures count to get reset with every failure, rather
then upon a successful return value.
This commit is contained in:
Jon Szymaniak 2014-11-04 21:52:23 -05:00 committed by Dimitri Stolnikov
parent 9fd5b367c1
commit 8d9e6b58bb
1 changed files with 2 additions and 2 deletions

View File

@ -136,10 +136,10 @@ int bladerf_sink_c::work( int noutput_items,
std::cerr << _pfx
<< "Consecutive error limit hit. Shutting down."
<< std::endl;
}
} else {
_consecutive_failures = 0;
}
}
return noutput_items;
}