comparison nnchat.c @ 408:65bef93e44e7

Fix a slight problem with connection pulling loop.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2012 05:47:15 +0300
parents 8a5a81c465f0
children 4556174b5be8
comparison
equal deleted inserted replaced
407:f400042cb57e 408:65bef93e44e7
1716 /* Fatal error, quit */ 1716 /* Fatal error, quit */
1717 errorMsg("Fatal error with message: %s\n", conn->ptr); 1717 errorMsg("Fatal error with message: %s\n", conn->ptr);
1718 isError = TRUE; 1718 isError = TRUE;
1719 } 1719 }
1720 } 1720 }
1721 else if (cres < 0)
1722 isError = TRUE;
1723 else
1724 break;
1721 } 1725 }
1722 while (conn->total_bytes > 0 && !isError); 1726 while (conn->total_bytes > 0 && !isError);
1723 1727
1724 if (!nn_conn_check(conn)) 1728 if (!nn_conn_check(conn))
1725 isError = TRUE; 1729 isError = TRUE;