Browse Source

Merge branch 'submit_async' into bfgminer

Luke Dashjr 13 years ago
parent
commit
d36932170a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -3757,7 +3757,7 @@ static void *submit_work_thread(__maybe_unused void *userdata)
 		
 		for (swsp = &write_sws; (sws = *swsp); ) {
 			int fd = sws->work->pool->sock;
-			if (!FD_ISSET(fd, &wfds)) {
+			if (fd == -1 || !FD_ISSET(fd, &wfds)) {
 				swsp = &sws->next;
 				continue;
 			}