mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
On macOS, shutdown(SHUT_RD) on a UDP socket that was never bound does not wake a thread blocked in recv on it, so sceNetShutdown left the receiver hanging. Use the receive wait that Windows already has: block on the socket table until the socket gets a local port or is shut, then poll. On macOS an unbound socket reports port 0 from getsockname, so the check looks at the port instead of the Winsock error. Ported from #8658. Co-authored-by: Himansh Raj <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>