fix while true on failed update

This commit is contained in:
mrbesen 2021-12-02 00:47:55 +01:00
parent 736c93f7a6
commit 74a52f8086
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
15 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -14,6 +14,7 @@
#include <seccomp.h>
#include <fcntl.h>
#include <sys/capability.h>
#include <thread>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
@ -164,7 +165,9 @@ int main(int argc, const char** argv) {
signal(SIGINT, sig_handler);
while(run) {
tapi.getUpdates();
if(!tapi.getUpdates()) {
std::this_thread::sleep_for(std::chrono::seconds(10));
}
}
Log::stop();

2
thirdparty/TAPI vendored

@ -1 +1 @@
Subproject commit cccdf36c23903dd1ad3f8a57149257ce589e4aee
Subproject commit ed50660fdc5110163a41afebb1e1c356ef1d9f6b