1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 02:46:36 +01:00

fix bug and load previous status messages on boot

This commit is contained in:
Jfreegman
2014-03-13 07:34:14 -04:00
parent 9d52b6ab5d
commit ac82961bea
2 changed files with 13 additions and 7 deletions

View File

@@ -402,7 +402,6 @@ static void load_data(Tox *m, char *path)
void exit_toxic(Tox *m)
{
pthread_join(Winthread.tid, NULL);
store_data(m, DATA_FILE);
close_all_file_senders();
kill_all_windows();
@@ -500,7 +499,6 @@ int main(int argc, char *argv[])
}
prompt = init_windows(m);
prompt_init_statusbar(prompt, m);
/* create new thread for ncurses stuff */
if (pthread_mutex_init(&Winthread.lock, NULL) != 0)
@@ -550,6 +548,7 @@ int main(int argc, char *argv[])
}
sort_friendlist_index(m);
prompt_init_statusbar(prompt, m);
while (true) {
do_toxic(m, prompt);