Fix Resolver contract check

This commit is contained in:
Vinnie Falco
2014-01-02 16:10:49 -08:00
parent f9dca105a6
commit 328680b6cd

View File

@@ -17,6 +17,8 @@
*/
//==============================================================================
#include <atomic>
namespace ripple {
class NameResolverImpl
@@ -106,7 +108,7 @@ public:
void stop_async ()
{
if (meets_precondition (m_called_stop.exchange (1) == 0))
if (m_called_stop.exchange (1) == 0)
{
m_io_service.dispatch (m_strand.wrap (boost::bind (
&NameResolverImpl::do_stop,