summaryrefslogtreecommitdiff
path: root/src/storage/storage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/storage.cc')
-rw-r--r--src/storage/storage.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/storage.cc b/src/storage/storage.cc
index 429f8aa..e3067a2 100644
--- a/src/storage/storage.cc
+++ b/src/storage/storage.cc
@@ -24,9 +24,9 @@ void Storage::do_write(signed data, int address)
void Storage::resolve()
{
if (this->wait_time == 0) {
- this->deque.pop_front();
+ this->requester = IDLE;
this->wait_time = delay;
- } else if (!this->deque.empty()) {
+ } else if (this->requester != IDLE) {
--this->wait_time;
}
}