From bbf420fa408e1f99f135de61bf1cd649dbb43e71 Mon Sep 17 00:00:00 2001 From: Yingchun Lai <405403881@qq.com> Date: Sun, 7 Feb 2021 11:04:19 +0800 Subject: [PATCH] Update src/failure_detector/failure_detector.cpp --- src/failure_detector/failure_detector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/failure_detector/failure_detector.cpp b/src/failure_detector/failure_detector.cpp index ddddae5f7e..3b26d1b620 100644 --- a/src/failure_detector/failure_detector.cpp +++ b/src/failure_detector/failure_detector.cpp @@ -111,7 +111,7 @@ void failure_detector::stop() _tracker.cancel_outstanding_tasks(); zauto_lock l(_lock); - if (_is_started == false) { + if (!_is_started) { return; } _is_started = false;