Fix missing errno

This commit is contained in:
2024-02-13 16:59:18 +01:00
parent 635808066c
commit 1be23a6d20

View File

@@ -264,7 +264,7 @@ void ArucoDetector::setNonBlocking(int sockfd) {
void ArucoDetector::sendData(int serverSocket, const std::string& data) {
int clientSocket = accept(serverSocket, nullptr, nullptr);
if(clientSocket == -1 && errno != EWOULDBLOCK && != EAGAIN) {
if(clientSocket == -1 && errno != EWOULDBLOCK && errno != EAGAIN) {
perror("accept");
return;
}