Skip to content

Commit

Permalink
Fix TimedDoor
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazy767 committed May 8, 2024
1 parent 8b27b52 commit 8fbf502
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/TimedDoor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include <unistd.h>
#include <stdexcept>
#include <iostream>
#include <chrono>
#include <thread>

DoorTimerAdapter::DoorTimerAdapter(TimedDoor& door) : door(door) {}

Expand Down Expand Up @@ -52,5 +50,5 @@ void Timer::tregister(int timeout, TimerClient* client) {
}

void Timer::sleep(int seconds) {
std::this_thread::sleep_for(std::chrono::seconds(seconds));
sleep(seconds);
}

0 comments on commit 8fbf502

Please sign in to comment.