mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 14:47:09 +00:00
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:
parent
1702a8ebea
commit
319c2ba5fc
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user