Commit 1aadfc580bcfe6506b58426d7b8b8d7bdd11683e

Con Kolivas 2011-07-27T01:41:16

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/main.c b/main.c
index b8ee0c1..a39cbb2 100644
--- a/main.c
+++ b/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);
 		}