summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/output/Feedback.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/output/Feedback.cpp b/src/output/Feedback.cpp
index f9c1af1..17e45bf 100644
--- a/src/output/Feedback.cpp
+++ b/src/output/Feedback.cpp
@@ -348,7 +348,9 @@ void DPDFeedbackServer::ServeFeedbackThread()
etiLog.level(error) << "DPD Feedback Server unknown exception!";
}
- this_thread::sleep_for(chrono::seconds(5));
+ if (m_running) {
+ this_thread::sleep_for(chrono::seconds(5));
+ }
}
m_running.store(false);