From a0eac6a136f63d1e46b1d1b790dbcb9a8e0b1a86 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Thu, 14 Nov 2013 19:34:40 -0500 Subject: [PATCH] fix bug --- src/main.c | 4 ++-- src/misc_tools.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 +}