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:
parent
6d279280e8
commit
c60ef75070
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ int villas::node::socket_stop(NodeCompat *n) {
|
||||||
if (s->sd >= 0) {
|
if (s->sd >= 0) {
|
||||||
// Close client socket descriptor.
|
// Close client socket descriptor.
|
||||||
if (s->layer == SocketLayer::TCP_SERVER) {
|
if (s->layer == SocketLayer::TCP_SERVER) {
|
||||||
close(s->clt_sd);
|
ret = close(s->clt_sd);
|
||||||
if (ret)
|
if (ret)
|
||||||
throw SystemError("Failed to close TCP client socket descriptor");
|
throw SystemError("Failed to close TCP client socket descriptor");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue