1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-09-20 08:36:53 +02:00

Fix AV bug

Pending call now properly hangs up when you use the /hangup command or close the chat window
This commit is contained in:
Jfreegman
2015-11-19 23:49:58 -05:00
parent 9f0feb7223
commit b24c5d8cf8
3 changed files with 23 additions and 24 deletions

View File

@@ -126,11 +126,6 @@ void kill_chat_window(ToxWindow *self, Tox *m)
ChatContext *ctx = self->chatwin;
StatusBar *statusbar = self->stb;
kill_all_file_transfers_friend(m, self->num);
log_disable(ctx->log);
line_info_cleanup(ctx->hst);
cqueue_cleanup(ctx->cqueue);
#ifdef AUDIO
#ifdef VIDEO
stop_video_stream(self);
@@ -138,6 +133,11 @@ void kill_chat_window(ToxWindow *self, Tox *m)
stop_current_call(self);
#endif /* AUDIO */
kill_all_file_transfers_friend(m, self->num);
log_disable(ctx->log);
line_info_cleanup(ctx->hst);
cqueue_cleanup(ctx->cqueue);
delwin(ctx->linewin);
delwin(ctx->history);
delwin(statusbar->topline);