From ef36409851a7eec6881467900b1cca101e503e3f Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Wed, 5 Aug 2015 10:15:25 +0300 Subject: [PATCH] minor fix in the serving thread to avoid annoying message; --- lib/sntllv2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sntllv2.c b/lib/sntllv2.c index e2e72ef..a3b6668 100644 --- a/lib/sntllv2.c +++ b/lib/sntllv2.c @@ -705,6 +705,8 @@ static void *__sntll_thread(void *b) } else printf("connread(head) µS: %ld\n", end.tv_usec - beg.tv_usec); #endif + if(co->flags & SNSX_CLOSED) goto __finish; /* go away if required asap */ + #ifdef _VERBOSE_DEBUG dumphead(mhead); #endif