Browse Source

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

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

+ 0 - 2
main.c

@@ -1474,7 +1474,6 @@ static void display_pools(void)
 	immedok(logwin, true);
 	immedok(logwin, true);
 updated:
 updated:
 	clear_logwin();
 	clear_logwin();
-	pthread_mutex_lock(&curses_lock);
 	for (i = 0; i < total_pools; i++) {
 	for (i = 0; i < total_pools; i++) {
 		pool = 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, "[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, "[C]hange management strategy [S]witch pool [I]nformation\n");
 	wprintw(logwin, "Or press any other key to continue\n");
 	wprintw(logwin, "Or press any other key to continue\n");
-	pthread_mutex_unlock(&curses_lock);
 	input = getch();
 	input = getch();
 
 
 	if (!strncasecmp(&input, "a", 1)) {
 	if (!strncasecmp(&input, "a", 1)) {