don't call curl_multi_add_handle() from outside of the event queue
[citadel.git] / citadel / modules / urldeshortener / serv_expand_shorter_urls.c
index d13d1e9582edcd443e6e888a8791537ba4adccf4..dafc0c6347e7630000113090c87b69df2d86d4cd 100644 (file)
@@ -1,3 +1,4 @@
+
 /*
  *
  * Copyright (c) 1998-2009 by the citadel.org team
@@ -143,7 +144,7 @@ int LookupUrl(StrBuf *ShorterUrlStr)
        if (server_shutting_down)
                goto shutdown ;
 
-       evcurl_handle_start(IO);
+       QueueCurlContext(IO);
 
 shutdown: