Skip to content

Commit

Permalink
fixed linux simulator build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Nov 14, 2021
1 parent bb8fe00 commit e286aee
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/eez/modules/mcu/ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ bool client_available(SocketType &listenSocket, SocketType &clientSocket) {

return true;
#else
if (connected())
if (connected(clientSocket))
return true;

if (listenSocket == -1) {
Expand Down Expand Up @@ -665,7 +665,7 @@ int available(SocketType &clientSocket, char *inputBuffer) {
return 0;
}

stop();
stop(clientSocket);

return 0;
#endif
Expand Down Expand Up @@ -695,7 +695,7 @@ int read(SocketType &clientSocket, char *buffer, int buffer_size) {
return 0;
}

stop();
stop(clientSocket);

return 0;
#endif
Expand Down Expand Up @@ -776,11 +776,11 @@ void onEvent(uint8_t eventType) {
g_debuggerListenSocket = INVALID_SOCKET;
}
#else
close(scpiListenSocket);
scpiListenSocket = -1;
close(g_scpiListenSocket);
g_scpiListenSocket = -1;

close(debuggerListenSocket);
debuggerListenSocket = -1;
close(g_debuggerListenSocket);
g_debuggerListenSocket = -1;
#endif
break;
}
Expand Down

0 comments on commit e286aee

Please sign in to comment.