mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:03:02 +01:00
fix bug
This commit is contained in:
parent
ee509a7cec
commit
a0eac6a136
@ -389,7 +389,7 @@ static void do_file_senders(Tox *m)
|
|||||||
close_file_sender(m, i);
|
close_file_sender(m, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
file_senders[i].timestamp = current_time;
|
file_senders[i].timestamp = current_time;
|
||||||
@ -400,7 +400,7 @@ static void do_file_senders(Tox *m)
|
|||||||
wprintw(file_senders[i].chatwin, "File '%s' successfuly sent.\n", pathname);
|
wprintw(file_senders[i].chatwin, "File '%s' successfuly sent.\n", pathname);
|
||||||
tox_file_sendcontrol(m, friendnum, 0, filenum, TOX_FILECONTROL_FINISHED, 0, 0);
|
tox_file_sendcontrol(m, friendnum, 0, filenum, TOX_FILECONTROL_FINISHED, 0, 0);
|
||||||
close_file_sender(m, i);
|
close_file_sender(m, i);
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -105,4 +105,4 @@ char *wc_to_char(wchar_t ch)
|
|||||||
bool timed_out(uint64_t timestamp, uint64_t curtime, uint64_t timeout)
|
bool timed_out(uint64_t timestamp, uint64_t curtime, uint64_t timeout)
|
||||||
{
|
{
|
||||||
return timestamp + timeout <= curtime;
|
return timestamp + timeout <= curtime;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user