aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-11-13 18:13:24 -0800
committerTrumeet <yuuta@yuuta.moe>2021-11-13 18:13:24 -0800
commit00391bfc13df5a63cb5a48a811308ef162f86a48 (patch)
tree8596c546065ca58d45c90f48d1a7b78c892ce5c0
parent1c70207bb9feee8bb1bc90f8012eaecb83a3db85 (diff)
downloadmutebot-00391bfc13df5a63cb5a48a811308ef162f86a48.tar
mutebot-00391bfc13df5a63cb5a48a811308ef162f86a48.tar.gz
mutebot-00391bfc13df5a63cb5a48a811308ef162f86a48.tar.bz2
mutebot-00391bfc13df5a63cb5a48a811308ef162f86a48.zip
fix: print logout error messages and force close TDLib if logout failed
-rw-r--r--tdutils.c2
1 files changed, 1 insertions, 1 deletions
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;