1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix: Broken error checking

Signed-off-by: Jitpanu Maneeratpongsuk <jitpanu.maneeratpongsuk@rwth-aachen.de>
This commit is contained in:
Jitpanu Maneeratpongsuk 2025-01-30 15:07:12 +00:00 committed by al3xa23
parent 6d279280e8
commit c60ef75070

View file

@ -340,7 +340,7 @@ int villas::node::socket_stop(NodeCompat *n) {
if (s->sd >= 0) {
// Close client socket descriptor.
if (s->layer == SocketLayer::TCP_SERVER) {
close(s->clt_sd);
ret = close(s->clt_sd);
if (ret)
throw SystemError("Failed to close TCP client socket descriptor");
}