Browse Source

comm error bug fix

This will log comm errors (and clear the receive buffer) for errors occurring in send_work
Paul Sheppard 13 years ago
parent
commit
ab38c683fc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-bitforce.c

+ 2 - 0
driver-bitforce.c

@@ -505,6 +505,8 @@ static int64_t bitforce_scanhash(struct thr_info *thr, struct work *work, int64_
 
 
 	if (ret)
 	if (ret)
 		ret = bitforce_get_result(thr, work);
 		ret = bitforce_get_result(thr, work);
+	else
+		ret = -1;
 
 
 	if (ret == -1) {
 	if (ret == -1) {
 		ret = 0;
 		ret = 0;