From 00391bfc13df5a63cb5a48a811308ef162f86a48 Mon Sep 17 00:00:00 2001 From: Trumeet Date: Sat, 13 Nov 2021 18:13:24 -0800 Subject: fix: print logout error messages and force close TDLib if logout failed --- tdutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdutils.c b/tdutils.c index 24fb90f..0c50b00 100644 --- a/tdutils.c +++ b/tdutils.c @@ -66,7 +66,7 @@ static void *main_sighandler(void *arg) { case SIGINT: case SIGTERM: if (td == -1) goto cleanup; - td_send(TdCreateObjectLogOut(), NULL, NULL); + td_send(TdCreateObjectLogOut(), &fetal_cb, NULL); goto cleanup; default: break; -- cgit v1.2.3