talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit d371ee55518909b81f07af3df6cee32e4f54365e
parent ff9859c1a03eb7989276351e918b32b366aa5eee
Author: Ricardo Mones <ricardo@mones.org>
Date:   Wed, 10 Sep 2014 01:15:37 +0200

Improve thread-safety in NNTP

Diffstat:
Msrc/etpan/nntp-thread.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/etpan/nntp-thread.c b/src/etpan/nntp-thread.c @@ -58,9 +58,6 @@ static chash * session_hash = NULL; static guint thread_manager_signal = 0; static GIOChannel * io_channel = NULL; -static void (*previous_stream_logger)(int direction, - const char * str, size_t size); - static void nntp_logger(int direction, const char * str, size_t size) { gchar *buf; @@ -270,7 +267,9 @@ static void threaded_run(Folder * folder, void * param, void * result, { struct etpan_thread_op * op; struct etpan_thread * thread; - + void (*previous_stream_logger)(int direction, + const char * str, size_t size); + nntp_folder_ref(folder); op = etpan_thread_op_new();