From 611a06b31f4aa3e21ee41cc48330a4eb104c1249 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 11 Aug 2014 09:17:20 +1000 Subject: [PATCH] Make sure to check the pthread conditional when polling for stalled sends since there will always be a send in the list --- src/connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index bbe4a237..092a3821 100644 --- a/src/connector.c +++ b/src/connector.c @@ -336,7 +336,7 @@ void *sender(void *arg) int ret, fd, ofs = 0; mutex_lock(&sender_lock); - if (!sender_sends) { + if (!sender_sends || polling) { ts_t timeout_ts; ts_realtime(&timeout_ts);