Skip to content

Commit

Permalink
RPCModule : update codes (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
holmes1412 authored Mar 13, 2024
1 parent 5eedc28 commit e993fbf
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/module/rpc_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ bool RPCModule::client_task_end(SubTask *task, RPCModuleData& data)

for (RPCFilter *filter : this->filters)
{
ret = ret && filter->client_end(task, data);
filter_task = filter->create_filter_task(data);
series_of(task)->push_front(filter_task);
if (filter->client_end(task, data))
{
filter_task = filter->create_filter_task(data);
series_of(task)->push_front(filter_task);
}
else
ret = false;
}

return ret;
Expand All @@ -67,9 +71,13 @@ bool RPCModule::server_task_end(SubTask *task, RPCModuleData& data)

for (RPCFilter *filter : this->filters)
{
ret = ret && filter->server_end(task, data);
filter_task = filter->create_filter_task(data);
series_of(task)->push_front(filter_task);
if (filter->server_end(task, data))
{
filter_task = filter->create_filter_task(data);
series_of(task)->push_front(filter_task);
}
else
ret = false;
}

return ret;
Expand Down

0 comments on commit e993fbf

Please sign in to comment.