mirror of
https://github.com/modelec/GameController.git
synced 2026-01-18 16:47:32 +01:00
sleep
This commit is contained in:
@@ -31,8 +31,8 @@ public:
|
||||
void start() {
|
||||
TCPClient::start();
|
||||
|
||||
// std::thread t(&GameControllerHandler::handleEvents, this);
|
||||
// t.detach();
|
||||
std::thread t(&GameControllerHandler::handleEvents, this);
|
||||
t.detach();
|
||||
}
|
||||
|
||||
void handleMessage(const std::string &message) override {
|
||||
@@ -111,6 +111,7 @@ public:
|
||||
}
|
||||
usleep(100);
|
||||
}
|
||||
usleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user