Skip to content
Snippets Groups Projects
Unverified Commit 85496886 authored by Jinhui Yuan's avatar Jinhui Yuan Committed by GitHub
Browse files

fix: can not access the regst_desc_id of network regst (#1217)

parent 38a50de4
No related branches found
No related tags found
No related merge requests found
......@@ -431,7 +431,12 @@ int Actor::ProcessWriteableCtrlRegstMsg(const ActorMsg& msg) {
}
int Actor::ProcessReadableCtrlRegstMsg(const ActorMsg& msg) {
return consumed_ctrl_rs_.TryPushBackRegst(msg.regst());
if (consumed_ctrl_rs_.HasRegstDescId(msg.regst_desc_id())) {
CHECK_EQ(0, consumed_ctrl_rs_.TryPushBackRegst(msg.regst()));
return 0;
} else {
return -1;
}
}
void Actor::AsyncSendCtrlRegstMsg() {
......
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