d/remote: Fix socket closing on Windows

This commit is contained in:
Charlton Rodda 2023-12-01 06:48:42 +00:00
parent 0f868318ac
commit 1b93431173

View file

@ -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;
}