Skip to content

Commit 42d227c

Browse files
committed
Correct ignore exception
1 parent 834b100 commit 42d227c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NetMQ/NetMQBeacon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ private NetMQFrame ReceiveUdpFrame(out string peerName)
294294
}
295295
catch(SocketException ex)
296296
{
297-
if (ex.SocketErrorCode != SocketError.NoBufferSpaceAvailable) { throw; }
297+
if (ex.SocketErrorCode != SocketError.MessageSize) { throw; }
298298
}
299299
peerName = peer.ToString();
300300

0 commit comments

Comments
 (0)