From: havoc Date: Mon, 25 Jan 2010 19:49:08 +0000 (+0000) Subject: a slightly more robust error return check X-Git-Tag: xonotic-v0.1.0preview~230^2~614 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1d4d9abf2bf73286acb29a21878d44109c84af0c;p=xonotic%2Fdarkplaces.git a slightly more robust error return check git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9855 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/lhnet.c b/lhnet.c index 3ee6267d..cd60917f 100644 --- a/lhnet.c +++ b/lhnet.c @@ -1088,7 +1088,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength, address->port = ntohs(address->addr.in.sin_port); return value; } - else if (value == -1) + else if (value < 0) { int e = SOCKETERRNO; if (e == EWOULDBLOCK)