mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-12 00:38:04 +00:00
d/remote: Use socket_close for destroy
Signed-off-by: utzcoz <utzcoz@outlook.com>
This commit is contained in:
parent
83e291897f
commit
7485975bfb
|
@ -373,11 +373,7 @@ r_hub_system_devices_destroy(struct xrt_system_devices *xsysd)
|
|||
}
|
||||
|
||||
if (r->rc.fd >= 0) {
|
||||
#ifdef _WIN32
|
||||
closesocket(r->rc.fd);
|
||||
#else
|
||||
close(r->rc.fd);
|
||||
#endif
|
||||
socket_close(r->rc.fd);
|
||||
r->rc.fd = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue