mirror of
https://github.com/modelec/detection_pot.git
synced 2026-03-28 18:29:39 +01:00
Fix missing errno
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user