From 291f62817c60e0ecec696029116ff9a4ac855175 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Tue, 4 Aug 2015 18:34:06 +0300 Subject: [PATCH] fixed - checking flag returned again; --- lib/sntllv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sntllv2.c b/lib/sntllv2.c index 6af0d36..e2e72ef 100644 --- a/lib/sntllv2.c +++ b/lib/sntllv2.c @@ -657,7 +657,7 @@ static void *__sntll_thread(void *b) */ while(1) { __again: - //if(co->flags & SNSX_CLOSED) goto __finish; /* go away if required asap */ + if(co->flags & SNSX_CLOSED) goto __finish; /* go away if required asap */ /* works with pending messages */ if(co->pending_messages && !(co->flags & SNSX_CLOSED)) { pthread_mutex_lock(&co->write_pending_lock);