Browse Source

Two redraws in a row cause a crash in old libncurses so just do one redraw using the main window.

Con Kolivas 14 years ago
parent
commit
1aadfc580b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      main.c

+ 1 - 2
main.c

@@ -3239,8 +3239,7 @@ static void *watchdog_thread(void *userdata)
 			pthread_mutex_lock(&curses_lock);
 			for (i = 0; i < mining_threads; i++)
 				curses_print_status(i);
-			redrawwin(logwin);
-			redrawwin(statuswin);
+			redrawwin(mainwin);
 			pthread_mutex_unlock(&curses_lock);
 		}