summaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-04-20 12:31:42 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-04-20 12:31:42 +0200
commit7e0910860457e33d44f99b95804574c7c5945c6f (patch)
tree5074fe139cfe3838584af388a41ba9098339934a /src/output
parent1f2409090a7e60ff4ec3b70a3161f2799d16cad5 (diff)
downloaddabmod-7e0910860457e33d44f99b95804574c7c5945c6f.tar.gz
dabmod-7e0910860457e33d44f99b95804574c7c5945c6f.tar.bz2
dabmod-7e0910860457e33d44f99b95804574c7c5945c6f.zip
Make DPDFeedback quit quickly
Diffstat (limited to 'src/output')
-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);