Added silc_schedule_[set|get]_global. Added many APIs to call
[crypto.git] / lib / silchttp / silchttpserver.c
index f43b26a354d8fd0703d82beab9929246e57586df..510d51b03ec3ad7621d105bec5e11322483d1255 100644 (file)
@@ -457,6 +457,9 @@ SilcHttpServer silc_http_server_alloc(const char *ip, SilcUInt16 port,
 
   SILC_LOG_DEBUG(("Start HTTP server at %s:%d", ip, port));
 
+  if (!schedule)
+    schedule = silc_schedule_get_global();
+
   if (!ip || !schedule || !callback)
     return FALSE;