Browse Source

Just keep whatever longpoll we have if it's working instead of risking the stop/start dereference problem.

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

+ 2 - 0
main.c

@@ -4467,6 +4467,8 @@ static void start_longpoll(void)
 
 
 static void restart_longpoll(void)
 static void restart_longpoll(void)
 {
 {
+	if (want_longpoll && have_longpoll)
+		return;
 	stop_longpoll();
 	stop_longpoll();
 	if (want_longpoll)
 	if (want_longpoll)
 		start_longpoll();
 		start_longpoll();