Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
esthete014 committed Apr 7, 2024
1 parent 27ded52 commit 9f22f15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TimedDoor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ TimedDoor::TimedDoor(int timeout) : iTimeout(timeout), isOpened(false) {
timer.tregister(timeout, adapter);
}

void Timer::tregister(int timeout, TimerClient *adapter) {
adapter->Timeout();
sleep(timeout);
}

bool TimedDoor::isDoorOpened() {
return isOpened;
}
Expand Down

0 comments on commit 9f22f15

Please sign in to comment.