mirror of
https://github.com/wownero/wownero.git
synced 2026-10-25 18:38:34 +01:00
connection: try-catch handles
(cherry picked from commit 14e333217e968416a521568ed2ef4868bb162b26)
This commit is contained in:
@@ -338,10 +338,10 @@ std::pair<uint64_t, uint64_t> block_queue::get_next_span_if_scheduled(std::vecto
|
||||
void block_queue::reset_next_span_time(boost::posix_time::ptime t)
|
||||
{
|
||||
boost::unique_lock<boost::recursive_mutex> lock(mutex);
|
||||
CHECK_AND_ASSERT_THROW_MES(!blocks.empty(), "No next span to reset time");
|
||||
CHECK_AND_ASSERT_MES_NO_RET(!blocks.empty(), "No next span to reset time");
|
||||
block_map::iterator i = blocks.begin();
|
||||
CHECK_AND_ASSERT_THROW_MES(i != blocks.end(), "No next span to reset time");
|
||||
CHECK_AND_ASSERT_THROW_MES(i->blocks.empty(), "Next span is not empty");
|
||||
CHECK_AND_ASSERT_MES_NO_RET(i != blocks.end(), "No next span to reset time");
|
||||
CHECK_AND_ASSERT_MES_NO_RET(i->blocks.empty(), "Next span is not empty");
|
||||
(boost::posix_time::ptime&)i->time = t; // sod off, time doesn't influence sorting
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user