We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310058e commit 7dd6989Copy full SHA for 7dd6989
GCD/GCDAsyncUdpSocket.m
@@ -4087,14 +4087,13 @@ - (void)doReceive
4087
4088
if (waitingForSocket)
4089
{
4090
- // Not enough room in the underlying OS socket send buffer.
4091
- // Wait for a notification.
+ // Wait for a notification of available data.
4092
4093
- if (!(flags & kSock4CanAcceptBytes)) {
4094
- [self resumeSend4Source];
+ if (socket4FDBytesAvailable == 0) {
+ [self resumeReceive4Source];
4095
}
4096
- if (!(flags & kSock6CanAcceptBytes)) {
4097
- [self resumeSend6Source];
+ if (socket6FDBytesAvailable == 0) {
+ [self resumeReceive6Source];
4098
4099
4100
else if (error)
0 commit comments