mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-10 15:58:06 +00:00
d/remote: Fix socket closing on Windows
This commit is contained in:
parent
0f868318ac
commit
1b93431173
|
@ -373,7 +373,11 @@ 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
|
||||
r->rc.fd = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue