Commit 510bcc3d7e6f6716848214fbcbd4563bf993f2ff

Con Kolivas 2011-08-29T12:21:37

Disable curses after inputting a pool if we requested no curses interface.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index 8111ec5..26fe078 100644
--- a/main.c
+++ b/main.c
@@ -4699,6 +4699,8 @@ int main (int argc, char *argv[])
 		applog(LOG_WARNING, "Need to specify at least one pool server.");
 		if (!input_pool(false))
 			quit(1, "Pool setup failed");
+		if (!use_curses)
+			disable_curses();
 	}
 
 	for (i = 0; i < total_pools; i++) {