The last pool is when we are low in total_pools, not active_pools.
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;
}