wait until periodic thread finishes during stop

This commit is contained in:
Andre Puschmann 2017-09-23 19:40:47 +02:00
parent f92728ad6e
commit 4eb52f58fc
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ public:
}
void stop() {
thread_cancel();
wait_thread_finish();
}
void add_listener(metrics_listener<metrics_t> *listener) {