diff --git a/src/ripple/core/impl/SNTPClock.cpp b/src/ripple/core/impl/SNTPClock.cpp index 446452c9a..169a8bfd9 100644 --- a/src/ripple/core/impl/SNTPClock.cpp +++ b/src/ripple/core/impl/SNTPClock.cpp @@ -157,6 +157,7 @@ public: using namespace boost::asio; socket_.open (ip::udp::v4 ()); + socket_.bind (ep_); socket_.async_receive_from (buffer (buf_, 256), ep_, std::bind( &SNTPClientImp::onRead, this, @@ -167,9 +168,6 @@ public: &SNTPClientImp::onTimer, this, std::placeholders::_1)); - // VFALCO Is it correct to launch the thread - // here after queuing I/O? - // thread_ = std::thread(&SNTPClientImp::doRun, this); }