Began working on the 'clean shutdown' code for the new thread architecture.
[citadel.git] / citadel / modules / urldeshortener / serv_expand_shorter_urls.c
index 0bc442f57e1fe77bddc54d6dd8f849e904e85948..6b038bec12556e3f42664af651c0a0b2dc4ba344 100644 (file)
@@ -139,7 +139,7 @@ int LookupUrl(StrBuf *ShorterUrlStr)
        OPT(WRITEHEADER, ShorterUrlStr);
 
 
-       if (CtdlThreadCheckStop())
+       if (server_shutting_down)
                goto shutdown ;
 
        evcurl_handle_start(IO);