OCT 1. 删除多余代码

This commit is contained in:
huangxin 2023-03-13 17:39:33 +08:00
parent 789ddbc716
commit 44d3cb5984
1 changed files with 0 additions and 2 deletions

View File

@ -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);