Commit 7143c25b727976b4d7a17baab4d0d5de81a236f9

Con Kolivas 2011-07-25T16:44:24

The last pool is when we are low in total_pools, not active_pools.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index 8890102..fc3f433 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;
 		}