Merge pull request #633

80882ac wallet: guard against exception in process_blocks (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2016-01-31 15:21:13 +02:00
commit 8d976a0683
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -780,6 +780,8 @@ void wallet2::refresh(uint64_t start_height, uint64_t & blocks_fetched, bool& re
catch (const std::exception&) catch (const std::exception&)
{ {
blocks_fetched += added_blocks; blocks_fetched += added_blocks;
if (pull_thread.joinable())
pull_thread.join();
if(try_count < 3) if(try_count < 3)
{ {
LOG_PRINT_L1("Another try pull_blocks (try_count=" << try_count << ")..."); LOG_PRINT_L1("Another try pull_blocks (try_count=" << try_count << ")...");