WiFi: Fix a bug where AdHoc connections would fail to read the socket on non-Windows systems.
This commit is contained in:
parent
5d384f9eae
commit
0aa8dad199
|
@ -1900,7 +1900,7 @@ void AdhocCommInterface::Trigger()
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
tv.tv_usec = 0;
|
tv.tv_usec = 0;
|
||||||
|
|
||||||
if (select(1, &fd, 0, 0, &tv))
|
if (select(thisSocket+1, &fd, NULL, NULL, &tv))
|
||||||
{
|
{
|
||||||
sockaddr_t fromAddr;
|
sockaddr_t fromAddr;
|
||||||
socklen_t fromLen = sizeof(sockaddr_t);
|
socklen_t fromLen = sizeof(sockaddr_t);
|
||||||
|
|
Loading…
Reference in New Issue