commit a94cc77e09b510be0ab51beb11b2bc51dec36719 parent cee1d2dafd6632c93269199f72c7f99a334c1d39 Author: sin <sin@2f30.org> Date: Wed, 11 Mar 2015 14:19:48 +0000 Only terminate enabled backends Diffstat:
M | 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; + } } }