diff --git a/test/test_ipc.cpp b/test/test_ipc.cpp index 62e40f9..595e661 100644 --- a/test/test_ipc.cpp +++ b/test/test_ipc.cpp @@ -80,11 +80,11 @@ void benchmark() { x = datas[cnt]; } // std::this_thread::sleep_for(std::chrono::milliseconds(1)); - } - if (x == 0) break; // quit - if (x != -1) { - seq.push_back(x); - ++cnt; + if (x == 0) break; // quit + if (x != -1) { + seq.push_back(x); + ++cnt; + } } std::this_thread::yield(); }