# HG changeset patch # User Matti Hamalainen # Date 1337967912 -10800 # Node ID f8d6a720388a8194f6c19351bd063487993585d6 # Parent 708a15fdf791572f810796fe1bb9bc1cc50b21f0 Fixes. diff -r 708a15fdf791 -r f8d6a720388a main.c --- 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);