mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 01:50:46 +02:00
Fixed tcp socket: shutdown() does not destroy socket descriptor -> use close()
This commit is contained in:
@@ -90,7 +90,7 @@ void TCPSocket::close()
|
|||||||
if (state_ != SocketState::Connected)
|
if (state_ != SocketState::Connected)
|
||||||
return;
|
return;
|
||||||
state_ = SocketState::Closed;
|
state_ = SocketState::Closed;
|
||||||
::shutdown(socket_fd_, SHUT_RDWR);
|
::close(socket_fd_);
|
||||||
socket_fd_ = -1;
|
socket_fd_ = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user