diff options
author | Trumeet <yuuta@yuuta.moe> | 2021-11-13 18:13:24 -0800 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2021-11-13 18:13:24 -0800 |
commit | 00391bfc13df5a63cb5a48a811308ef162f86a48 (patch) | |
tree | 8596c546065ca58d45c90f48d1a7b78c892ce5c0 /tdutils.c | |
parent | 1c70207bb9feee8bb1bc90f8012eaecb83a3db85 (diff) | |
download | mutebot-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
Diffstat (limited to 'tdutils.c')
-rw-r--r-- | tdutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |