mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-05 03:16:45 +02:00
endwin needs to come first
This commit is contained in:
@ -134,9 +134,9 @@ static void select_friend(Tox *m, wint_t key)
|
||||
} else return; /* Bad key input */
|
||||
|
||||
/* If we reach this something is wrong */
|
||||
fprintf(stderr, "select_friend() failed. Aborting...\n");
|
||||
endwin();
|
||||
tox_kill(m);
|
||||
fprintf(stderr, "select_friend() failed. Aborting...\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user