Fix Scheduler::get_timeout.
This commit is contained in:
parent
b67466a554
commit
85d6ef98c3
@ -519,6 +519,9 @@ void Scheduler::run_no_guard(Timestamp timeout) {
|
||||
}
|
||||
|
||||
Timestamp Scheduler::get_timeout() {
|
||||
if (!ready_actors_list_.empty()) {
|
||||
return Timestamp::in(0);
|
||||
}
|
||||
if (timeout_queue_.empty()) {
|
||||
return Timestamp::in(10000);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user