fix(lighthouse): extend bounded checker wait
This commit is contained in:
1 parent
f4738419eb
commit
5e5d5a0822
2 files changed
+2
-2
No files matched your search
@@ -32,7 +32,7 @@ public:
|
||||
if (held_ >= limit_) {
|
||||
if (waiting_ >= 8) throw Busy();
|
||||
++waiting_;
|
||||
bool available = room_.wait_for(guard, std::chrono::seconds(5), [&] { return held_ < limit_; });
|
||||
bool available = room_.wait_for(guard, std::chrono::seconds(15), [&] { return held_ < limit_; });
|
||||
--waiting_;
|
||||
if (!available) throw Busy();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user