add body to ifstatement if locks disabled.

git-svn-id: file:///svn/unbound/trunk@3076 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2014-02-07 12:10:06 +00:00
parent 1702a8ebea
commit 319c2ba5fc

View File

@ -219,8 +219,9 @@ libworker_setup(struct ub_ctx* ctx, int is_bg, struct event_base* eb)
if(numports == 0) { if(numports == 0) {
int locked = !w->is_bg || w->is_bg_thread; int locked = !w->is_bg || w->is_bg_thread;
libworker_delete(w); libworker_delete(w);
if(locked) if(locked) {
lock_basic_unlock(&ctx->cfglock); lock_basic_unlock(&ctx->cfglock);
}
return NULL; return NULL;
} }
w->back = outside_network_create(w->base, cfg->msg_buffer_size, w->back = outside_network_create(w->base, cfg->msg_buffer_size,