Skip to content

Commit

Permalink
mod_sonic: state transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
sflow committed Jun 15, 2024
1 parent 1746bb3 commit 7f33527
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Linux/mod_sonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,10 @@ extern "C" {
return YES;
}
else {
setSonicState(mod, HSP_SONIC_STATE_DISCOVER_MAPPING);
// advance from DISCOVER to DISCOVER_MAPPING, but if we are in, say, the RUN
// state then don't do anything here. We are probably just polling counters.
if(mdata->state == HSP_SONIC_STATE_DISCOVER)
setSonicState(mod, HSP_SONIC_STATE_DISCOVER_MAPPING);
}
return NO;
}
Expand Down

0 comments on commit 7f33527

Please sign in to comment.