aboutsummaryrefslogtreecommitdiff
path: root/close_direct_conversations
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--close_direct_conversations/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/close_direct_conversations/main.c b/close_direct_conversations/main.c
index 9c723f9..122420d 100644
--- a/close_direct_conversations/main.c
+++ b/close_direct_conversations/main.c
@@ -48,12 +48,13 @@ int main(void)
}
restapi_im_close(buff);
free(buff);
+
+ restapi_logout();
}
} else {
printf("Couldn't init rest api.\n");
}
- restapi_logout();
config_clean();
common_cli_free();