fix while true on failed update
This commit is contained in:
parent
736c93f7a6
commit
74a52f8086
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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();
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit cccdf36c23903dd1ad3f8a57149257ce589e4aee
|
||||
Subproject commit ed50660fdc5110163a41afebb1e1c356ef1d9f6b
|
Loading…
Reference in New Issue