mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-01-30 04:11:21 -08:00
no need for these timeouts
This commit is contained in:
parent
1ef7ea0fe6
commit
6df7366753
1 changed files with 0 additions and 3 deletions
|
|
@ -98,19 +98,16 @@ void PubSubListener::subscribe()
|
|||
auto result = session.wait_for(std::chrono::seconds(10));
|
||||
if (result == std::future_status::timeout) {
|
||||
session.cancel();
|
||||
std::this_thread::sleep_for(std::chrono::seconds(5));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (! session.valid()) {
|
||||
fprintf(stderr, "Subscription session no longer valid\n");
|
||||
std::this_thread::sleep_for(std::chrono::seconds(5));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch (google::cloud::Status const& status) {
|
||||
fprintf(stderr, "Subscription terminated with status: %s\n", status.message().c_str());
|
||||
std::this_thread::sleep_for(std::chrono::seconds(5));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue