Mercurial > hg > nnchat
changeset 624:24d97c710497
Adjust to changes in API.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 21 Jun 2014 02:56:14 +0300 |
parents | 118276b60667 |
children | edac1485308d |
files | main.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Sat Jun 21 02:40:51 2014 +0300 +++ b/main.c Sat Jun 21 02:56:14 2014 +0300 @@ -2256,7 +2256,7 @@ else { int cres = th_conn_pull(conn); - if (cres == 0) + if (cres == TH_CONN_DATA_AVAIL) { printMsg(currWin, "Probe got: %s\n", conn->buf); } @@ -2297,7 +2297,7 @@ packet_retry: cres = th_conn_pull(conn); - if (cres == 0) + if (cres == TH_CONN_DATA_AVAIL) { while (conn->ptr < conn->in_ptr && *(conn->in_ptr - 1) == 0 && @@ -2325,7 +2325,7 @@ } } else - if (cres < 0 || !th_conn_check(conn)) + if (cres < TH_CONN_ERROR || !th_conn_check(conn)) editState.isError = TRUE; // Handle user input