Reverted boneheaded change.

CQTexperiment
vspader 2009-03-06 21:40:58 -08:00
parent 4eee66d16a
commit 2b55b8978b
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ void JNL_Connection::run(int max_send_bytes, int max_recv_bytes, int *bytes_sent
*/
int res = socket_recv(m_recv_buffer+m_recv_pos,len,0);
if (res <= 0 || (res < 0 && ERRNO != EWOULDBLOCK))
if (res == 0 || (res < 0 && ERRNO != EWOULDBLOCK))
{
m_state=STATE_CLOSED;
break;