From d1bd90e4c969ed69121c4e217d49ba896a54e8a5 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Fri, 8 Jun 2012 01:01:44 +0100 Subject: [PATCH] Fix session check on startup - Session check was looking at the response code from the version check, should the session check request complete before the version check, the response code would not be valid and the response would be discarded. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a7da674b6..b181182d2 100644 --- a/src/main.c +++ b/src/main.c @@ -1154,7 +1154,7 @@ int main(int argc, char *argv[]) { char saveURIOpenString[512]; check_data = http_async_req_stop(http_session_check, &http_s_ret, NULL); - if (http_ret==200 && check_data) + if (http_s_ret==200 && check_data) { if (!strncmp(check_data, "EXPIRED", 7)) {