diff options
-rw-r--r-- | limox.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -151,14 +151,12 @@ void limox_disconnect(void) { while (xmpp_conn_is_connected(conn)) { xmpp_run_once(ctx, 200); } - xmpp_conn_release(conn); + if (!xmpp_conn_release(conn)) { + printf("DEBUG: Could not free connection!\n"); + } } - // TODO free conn - conn = NULL; - flags = 0; - state = DISCONNECTED; } |