From 37b6406e0ed69d44ee621db696795fefa1e1c022 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 14 Feb 2015 16:45:46 +1100 Subject: [PATCH] Set share response to true even if we don't find the matching share --- src/generator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index c23b7da8..f8301d21 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1401,11 +1401,13 @@ static bool parse_share(proxy_instance_t *proxi, const char *buf) HASH_DEL(proxi->shares, share); mutex_unlock(&proxi->share_lock); + /* We set response to true even if we don't find the matching share, + * so long as we recognised it as a share response */ + ret = true; if (!share) { LOGINFO("Failed to find matching share to result: %s", buf); goto out; } - ret = true; LOGDEBUG("Found share from client %d with msg_id %d", share->client_id, share->msg_id); free(share);