diff --git a/src/main.c b/src/main.c index 0da1a3f..961ec6a 100644 --- a/src/main.c +++ b/src/main.c @@ -389,7 +389,7 @@ static void do_file_senders(Tox *m) close_file_sender(m, i); } - return; + break; } 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); tox_file_sendcontrol(m, friendnum, 0, filenum, TOX_FILECONTROL_FINISHED, 0, 0); close_file_sender(m, i); - return; + break; } } } diff --git a/src/misc_tools.c b/src/misc_tools.c index bdccadf..bfa7069 100644 --- a/src/misc_tools.c +++ b/src/misc_tools.c @@ -105,4 +105,4 @@ char *wc_to_char(wchar_t ch) bool timed_out(uint64_t timestamp, uint64_t curtime, uint64_t timeout) { return timestamp + timeout <= curtime; -} \ No newline at end of file +}