Browse Source

Bugfix: Don't error on DEVS command if all devices are PGAs

Luke Dashjr 14 years ago
parent
commit
3ffffd2374
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api.c

+ 1 - 1
api.c

@@ -919,7 +919,7 @@ static void devstatus(__maybe_unused SOCKETTYPE c, __maybe_unused char *param, b
 	int devcount = 0;
 	int devcount = 0;
 	int i;
 	int i;
 
 
-	if (nDevs == 0 && opt_n_threads == 0) {
+	if (total_devices == 0) {
 		strcpy(io_buffer, message(MSG_NODEVS, 0, NULL, isjson));
 		strcpy(io_buffer, message(MSG_NODEVS, 0, NULL, isjson));
 		return;
 		return;
 	}
 	}