From 8566ed44d2a3c83cbd7718c7351ddbfde15b4c85 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 15 Sep 2011 20:05:22 +1000 Subject: [PATCH] Just keep whatever longpoll we have if it's working instead of risking the stop/start dereference problem. --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 11d8b97e..6ae4329a 100644 --- a/main.c +++ b/main.c @@ -4467,6 +4467,8 @@ static void start_longpoll(void) static void restart_longpoll(void) { + if (want_longpoll && have_longpoll) + return; stop_longpoll(); if (want_longpoll) start_longpoll();