mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-04 23:56:45 +02:00
dynamically adjust main loop sleep time according to recommended value
This commit is contained in:
@ -450,8 +450,6 @@ static void select_friend(ToxWindow *self, wint_t key, int *selected, int num)
|
||||
|
||||
static void delete_friend(Tox *m, int32_t f_num)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (friends[f_num].chatwin >= 0) {
|
||||
ToxWindow *toxwin = get_window_ptr(friends[f_num].chatwin);
|
||||
|
||||
@ -464,6 +462,8 @@ static void delete_friend(Tox *m, int32_t f_num)
|
||||
tox_del_friend(m, f_num);
|
||||
memset(&friends[f_num], 0, sizeof(ToxicFriend));
|
||||
|
||||
int i;
|
||||
|
||||
for (i = max_friends_index; i > 0; --i) {
|
||||
if (friends[i - 1].active)
|
||||
break;
|
||||
|
Reference in New Issue
Block a user