waffle

user and group backend daemon
git clone git://git.2f30.org/waffle.git
Log | Files | Refs | LICENSE

commit a94cc77e09b510be0ab51beb11b2bc51dec36719
parent cee1d2dafd6632c93269199f72c7f99a334c1d39
Author: sin <sin@2f30.org>
Date:   Wed Mar 11 14:19:48 +0000

Only terminate enabled backends

Diffstat:
backend.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/backend.c b/backend.c @@ -33,8 +33,10 @@ backends_term(void) size_t i; for (i = 0; i < LEN(backends); i++) { - backends[i].ops->term(); - backends[i].enabled = 0; + if (backends[i].enabled) { + backends[i].ops->term(); + backends[i].enabled = 0; + } } }