summaryrefslogtreecommitdiff
path: root/limox.c
diff options
context:
space:
mode:
Diffstat (limited to 'limox.c')
-rw-r--r--limox.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/limox.c b/limox.c
index b0e74dd..911568b 100644
--- a/limox.c
+++ b/limox.c
@@ -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;
}