Commit ba89a0a44f6912c802e5220e6e37dca02825cc4d

Con Kolivas 2011-07-23T00:33:01

Unlocking error on retry. Locking unnecessary anyway so remove it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/main.c b/main.c
index aaf4b94..c978cf3 100644
--- a/main.c
+++ b/main.c
@@ -1474,7 +1474,6 @@ static void display_pools(void)
 	immedok(logwin, true);
 updated:
 	clear_logwin();
-	pthread_mutex_lock(&curses_lock);
 	for (i = 0; i < total_pools; i++) {
 		pool = pools[i];
 
@@ -1498,7 +1497,6 @@ retry:
 	wprintw(logwin, "[A]dd pool [R]emove pool [D]isable pool [E]nable pool\n");
 	wprintw(logwin, "[C]hange management strategy [S]witch pool [I]nformation\n");
 	wprintw(logwin, "Or press any other key to continue\n");
-	pthread_mutex_unlock(&curses_lock);
 	input = getch();
 
 	if (!strncasecmp(&input, "a", 1)) {