WiFi: Fix a bug where AdHoc connections would fail to read the socket on non-Windows systems.

This commit is contained in:
rogerman 2018-08-23 21:50:17 -07:00
parent 5d384f9eae
commit 0aa8dad199
1 changed files with 1 additions and 1 deletions

View File

@ -1900,7 +1900,7 @@ void AdhocCommInterface::Trigger()
tv.tv_sec = 0;
tv.tv_usec = 0;
if (select(1, &fd, 0, 0, &tv))
if (select(thisSocket+1, &fd, NULL, NULL, &tv))
{
sockaddr_t fromAddr;
socklen_t fromLen = sizeof(sockaddr_t);