mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Continue session in case GetRPCMethods failing
This commit is contained in:
parent
617f537109
commit
643af329ff
1 changed files with 12 additions and 4 deletions
16
cwmp.c
16
cwmp.c
|
|
@ -179,13 +179,21 @@ int cwmp_schedule_rpc(struct cwmp *cwmp, struct session *session)
|
|||
goto retry;
|
||||
|
||||
CWMP_LOG(INFO, "Send the %s RPC message to the ACS", rpc_acs_methods[rpc_acs->type].name);
|
||||
if (xml_send_message(cwmp, session, rpc_acs) || thread_end)
|
||||
goto retry;
|
||||
if (xml_send_message(cwmp, session, rpc_acs)) {
|
||||
if (rpc_acs->type == RPC_ACS_GET_RPC_METHODS)
|
||||
continue;
|
||||
else
|
||||
goto retry;
|
||||
}
|
||||
|
||||
CWMP_LOG(INFO, "Get the %sResponse message from the ACS", rpc_acs_methods[rpc_acs->type].name);
|
||||
if (rpc_acs_methods[rpc_acs->type].parse_response || thread_end)
|
||||
if (rpc_acs_methods[rpc_acs->type].parse_response(cwmp, session, rpc_acs))
|
||||
goto retry;
|
||||
if (rpc_acs_methods[rpc_acs->type].parse_response(cwmp, session, rpc_acs)) {
|
||||
if (rpc_acs->type == RPC_ACS_GET_RPC_METHODS)
|
||||
continue;
|
||||
else
|
||||
goto retry;
|
||||
}
|
||||
|
||||
ilist = ilist->prev;
|
||||
if (rpc_acs_methods[rpc_acs->type].extra_clean != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue