]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/AsyncMessenger: re-evaluate the stop condition when woken up in 'wait()'
authorLeonid Usov <leonid.usov@ibm.com>
Thu, 10 Aug 2023 13:18:53 +0000 (16:18 +0300)
committerLeonid Usov <leonid.usov@ibm.com>
Thu, 10 Aug 2023 13:20:51 +0000 (16:20 +0300)
Signed-off-by: Leonid Usov <leonid.usov@ibm.com>
Fixes: https://tracker.ceph.com/issues/62395
src/msg/async/AsyncMessenger.cc

index 3971e91ffd015c908fadab3ebb3c7e2adb623bd4..d002d60897ca5a4df8d752319ee6fc8bdf39cfbf 100644 (file)
@@ -582,7 +582,7 @@ void AsyncMessenger::wait()
     if (!started) {
       return;
     }
-    if (!stopped)
+    while (!stopped)
       stop_cond.wait(locker);
   }
   dispatch_queue.shutdown();