0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

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:
Elizabeth Myers 2016-04-02 22:31:19 -05:00
parent 5c5296c8f8
commit 55984834e5

View file

@ -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;
}