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);