Browse Source

Make --no-longpoll work again.

Con Kolivas 14 years ago
parent
commit
fe8b041654
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.c

+ 1 - 1
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;