From b5414af3ceb5141ea81482eb4efd21d2c52e6805 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Sun, 14 Sep 2014 19:53:08 -0400 Subject: [PATCH] Restore an accidentally-commented-out line that was preventing NTP from restarting after encountering an error. --- src/network/ntp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/ntp.cpp b/src/network/ntp.cpp index d786e4f..68bf5b4 100644 --- a/src/network/ntp.cpp +++ b/src/network/ntp.cpp @@ -102,7 +102,7 @@ namespace fc uint64_t* recv_buf = (uint64_t*)receive_buffer.get(); //outer while to restart read-loop if exception is thrown while waiting to receive on socket. - //while( !_read_loop_done.canceled() ) + while( !_read_loop_done.canceled() ) { // if you start the read while loop here, the recieve_from call will throw "invalid argument" on win32, // so instead we start the loop after making our first request @@ -144,7 +144,7 @@ namespace fc } // try catch (fc::canceled_exception) { - throw; + throw; } catch (...) {