Browse Source

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

Con Kolivas 14 years ago
parent
commit
7143c25b72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -1581,7 +1581,7 @@ retry:
 		input_pool(true);
 		input_pool(true);
 		goto updated;
 		goto updated;
 	} else if (!strncasecmp(&input, "r", 1)) {
 	} else if (!strncasecmp(&input, "r", 1)) {
-		if (active_pools() <= 1) {
+		if (total_pools <= 1) {
 			wlogprint("Cannot remove last pool");
 			wlogprint("Cannot remove last pool");
 			goto retry;
 			goto retry;
 		}
 		}