Browse Source

Check for submitold before submitstale.

Con Kolivas 14 years ago
parent
commit
5ece966f07
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cgminer.c

+ 3 - 3
cgminer.c

@@ -2086,10 +2086,10 @@ static void *submit_work_thread(void *userdata)
 		int failures = 0;
 
 		if (stale_work(work, true)) {
-			if (opt_submit_stale)
-				applog(LOG_NOTICE, "Stale share detected, submitting as user requested");
-			else if (pool->submit_old)
+			if (pool->submit_old)
 				applog(LOG_NOTICE, "Stale share detected, submitting as pool requested");
+			else if (opt_submit_stale)
+				applog(LOG_NOTICE, "Stale share detected, submitting as user requested");
 			else {
 				applog(LOG_NOTICE, "Stale share detected, discarding");
 				sharelog("discard", work);