Mercurial > hg > nnchat
changeset 436:f8d6a720388a
Fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 25 May 2012 20:45:12 +0300 |
parents | 708a15fdf791 |
children | 8e9690a3f973 |
files | main.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Fri May 25 20:21:45 2012 +0300 +++ b/main.c Fri May 25 20:45:12 2012 +0300 @@ -1908,12 +1908,17 @@ if (cres == 0 && *(conn->in_ptr - 1) == 0) { int result = nn_parse_protocol(conn); + if (result == 0) + { + nn_conn_buf_skip(conn, 1); + } + else if (result > 0) { // Couldn't handle the message for some reason printMsg(currWin, "Could not handle: %s\n", conn->ptr); } - else if (result < 0) + else { // Fatal error, quit errorMsg("Fatal error with message: %s\n", conn->ptr);