From 8fc631090fd88a7e8e62f284c3dfd3c515d14613 Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 8 Mar 2025 13:47:22 -0500 Subject: Fix bug where wait_time would decrease while idle --- src/storage/storage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/storage/storage.cc') diff --git a/src/storage/storage.cc b/src/storage/storage.cc index 429ac2b..429f8aa 100644 --- a/src/storage/storage.cc +++ b/src/storage/storage.cc @@ -26,7 +26,7 @@ void Storage::resolve() if (this->wait_time == 0) { this->deque.pop_front(); this->wait_time = delay; - } else { + } else if (!this->deque.empty()) { --this->wait_time; } } -- cgit v1.2.3