OCT 1. 删除多余代码
This commit is contained in:
parent
789ddbc716
commit
44d3cb5984
|
@ -945,14 +945,12 @@ static HTTP_ROUTE_INFO g_routeTable[] = {
|
||||||
|
|
||||||
void opendhcp_init_http_server() {
|
void opendhcp_init_http_server() {
|
||||||
static int added = FALSE;
|
static int added = FALSE;
|
||||||
static uv_thread_t uvThread;
|
|
||||||
static uv_timer_t uvTm;
|
static uv_timer_t uvTm;
|
||||||
if (!added) {
|
if (!added) {
|
||||||
uv_rwlock_init(&g_uvCacheLock);
|
uv_rwlock_init(&g_uvCacheLock);
|
||||||
uv_timer_init(get_task_manager(), &uvTm);
|
uv_timer_init(get_task_manager(), &uvTm);
|
||||||
|
|
||||||
uv_timer_start(&uvTm, iptvCacheCb, 1000, 1000);
|
uv_timer_start(&uvTm, iptvCacheCb, 1000, 1000);
|
||||||
//uv_thread_create(&uvThread, iptvCacheCb, nullptr);
|
|
||||||
for (auto &i : g_routeTable) {
|
for (auto &i : g_routeTable) {
|
||||||
PHTTP_ROUTE_INFO p = &i;
|
PHTTP_ROUTE_INFO p = &i;
|
||||||
http_add_route(p->routeName, p->method, p->priority, p->cb, p->pUserData);
|
http_add_route(p->routeName, p->method, p->priority, p->cb, p->pUserData);
|
||||||
|
|
Loading…
Reference in New Issue