summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-08 00:01:44 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-08 00:01:44 (GMT)
commitd1bd90e4c969ed69121c4e217d49ba896a54e8a5 (patch)
treef2c59bfdda868ea1fe2c6eea03c8bd759cd1a611 /src
parentca4400a7ad2b729ef776d32fbcd5ddd3e3c15c3c (diff)
downloadpowder-d1bd90e4c969ed69121c4e217d49ba896a54e8a5.zip
powder-d1bd90e4c969ed69121c4e217d49ba896a54e8a5.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a7da674..b181182 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))
{