Mercurial > hg > nnchat
diff main.c @ 613:2cd71b7c1e8e
Repurpose nn_conn_close() to only close the socket, but not free the
connection structure. Add new function nn_conn_free() to do the freeing
(also calls nn_conn_close()).
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 20 May 2014 06:50:12 +0300 |
parents | 59588bbf8d55 |
children | 1ffacd20b88b |
line wrap: on
line diff
--- a/main.c Tue May 20 06:20:43 2014 +0300 +++ b/main.c Tue May 20 06:50:12 2014 +0300 @@ -2226,7 +2226,7 @@ printMsg(currWin, "Could not get policy probe.\n"); } } - nn_conn_close(conn); + nn_conn_free(conn); #endif // Okay, now do the proper connection ... @@ -2352,7 +2352,7 @@ #endif th_free(optUserNameEnc); - nn_conn_close(conn); + nn_conn_free(conn); nn_network_close(); THMSG(1, "Connection terminated.\n");