Skip to content

Commit 03691fc

Browse files
committed
Trigger thread exit if state is QUIT
1 parent b8e6f6f commit 03691fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ int main(int argc, char **argv) {
574574
std::thread([&] {
575575
j["message"] = "OK";
576576
std::cout << j.dump(2) << std::endl;
577-
while (1) {
577+
while (state != QUIT) {
578578
if (state == START_SYNC) {
579579
probe_devices(ctx);
580580
print_event();

0 commit comments

Comments
 (0)