mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-03 20:17:54 +00:00
Fixing ConfigurationValidator to not crash.
This commit is contained in:
37
src/JobController.cpp
Normal file
37
src/JobController.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// Created by stephane bourque on 2021-10-28.
|
||||
//
|
||||
|
||||
#include "JobController.h"
|
||||
|
||||
namespace OpenWifi {
|
||||
|
||||
void RegisterJobTypes();
|
||||
|
||||
int JobController::Start() {
|
||||
|
||||
RegisterJobTypes();
|
||||
|
||||
if(!Running_)
|
||||
Thr_.start(*this);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void JobController::Stop() {
|
||||
if(Running_) {
|
||||
Running_ = false;
|
||||
Thr_.join();
|
||||
}
|
||||
}
|
||||
|
||||
void JobController::run() {
|
||||
Running_ = true ;
|
||||
|
||||
while(Running_) {
|
||||
Poco::Thread::trySleep(2000);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user