From 7143c25b727976b4d7a17baab4d0d5de81a236f9 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 25 Jul 2011 16:44:24 +1000 Subject: [PATCH] The last pool is when we are low in total_pools, not active_pools. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 88901024..fc3f433c 100644 --- a/main.c +++ b/main.c @@ -1581,7 +1581,7 @@ retry: input_pool(true); goto updated; } else if (!strncasecmp(&input, "r", 1)) { - if (active_pools() <= 1) { + if (total_pools <= 1) { wlogprint("Cannot remove last pool"); goto retry; }