Commit 65c0372c authored by Omar Kallel's avatar Omar Kallel

Fix session cookies issue (repair)

parent b6d8e31d
Pipeline #1790 passed with stage
in 27 seconds
......@@ -175,9 +175,7 @@ void cwmp_schedule_session (struct cwmp *cwmp)
}
session = list_entry(ilist, struct session, list);
cwmp_add_notification_min();
if (access(fc_cookies, F_OK) != -1)
remove(fc_cookies);
cwmp_prepare_value_change(cwmp, session);
if (error = cwmp_move_session_to_session_send (cwmp, session))
......@@ -190,7 +188,9 @@ void cwmp_schedule_session (struct cwmp *cwmp)
cwmp->session_status.last_status = SESSION_RUNNING;
cwmp->session_status.next_retry = 0;
cwmp_add_notification_min();
if (access(fc_cookies, F_OK) != -1)
remove(fc_cookies);
CWMP_LOG (INFO,"Start session");
uci_get_value(UCI_CPE_EXEC_DOWNLOAD, &exec_download);
if(strcmp(exec_download, "1") == 0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment