opm: properly disable opm on blacklist deletions.
If there are no proxies left (or they're all being cleared), disable OPM, as it's totally useless from that point.
This commit is contained in:
parent
5c5296c8f8
commit
55984834e5
1 changed files with 5 additions and 0 deletions
|
@ -846,6 +846,9 @@ delete_opm_scanner(const char *key __unused, int parc __unused, const char **par
|
|||
|
||||
rb_dlinkDelete(&proxy->node, &proxy_scanners);
|
||||
rb_free(proxy);
|
||||
|
||||
if(!rb_dlink_list_length(proxy_scanners))
|
||||
opm_enable = false;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -865,6 +868,8 @@ delete_opm_scanner_all(const char *key __unused, int parc __unused, const char *
|
|||
{
|
||||
opm_cancel(auth);
|
||||
}
|
||||
|
||||
opm_enable = false;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue