Commit fe8b041654b94341b599fb0aaa7144092907fb09

Con Kolivas 2011-07-22T12:22:55

Make --no-longpoll work again.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index 9b87e30..461c5b9 100644
--- a/util.c
+++ b/util.c
@@ -348,7 +348,7 @@ json_t *json_rpc_call(CURL *curl, const char *url,
 		goto err_out;
 	}
 
-	if (!have_longpoll) {
+	if (!have_longpoll && want_longpoll) {
 		/* If X-Long-Polling was found, activate long polling */
 		if (hi.lp_path) {
 			have_longpoll = true;