From 07212db106a1cc654affe3b95bf8acff7b8ed752 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 31 May 2012 08:34:06 +1000 Subject: [PATCH] Restarting cgminer from within after ADL has been corrupted only leads to a crash. Display a warning only and disable fanspeed monitoring. --- adl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/adl.c b/adl.c index 837f24c2..6ed6a182 100644 --- a/adl.c +++ b/adl.c @@ -692,11 +692,7 @@ int gpu_fanpercent(int gpu) unlock_adl(); if (unlikely(ga->has_fanspeed && ret == -1)) { applog(LOG_WARNING, "GPU %d stopped reporting fanspeed due to driver corruption", gpu); - if (opt_restart) { - applog(LOG_WARNING, "Restart enabled, will restart cgminer"); - applog(LOG_WARNING, "You can disable this with the --no-restart option"); - app_restart(); - } + applog(LOG_WARNING, "You will need to start cgminer from scratch to correct this"); applog(LOG_WARNING, "Disabling fanspeed monitoring on this device"); ga->has_fanspeed = false; }