Skip to content

Commit a74dc2d

Browse files
authored
Merge branch 'main' into client_downlinks_bug
2 parents 74fd8e3 + b611c18 commit a74dc2d

File tree

1 file changed

+9
-0
lines changed
  • server/swimos_agent/src/agent_model

1 file changed

+9
-0
lines changed

server/swimos_agent/src/agent_model/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,15 @@ where
10061006
lane_readers.push(LaneReader::http(id, rx));
10071007
}
10081008

1009+
// We need to check if anything has been written into the command buffer as the agent
1010+
// initialisation process called lifecycle::on_start and that may have sent commands.
1011+
check_cmds(
1012+
&mut ad_hoc_buffer,
1013+
&mut cmd_writer,
1014+
&mut cmd_send_fut,
1015+
CommandWriter::write,
1016+
);
1017+
10091018
// This set keeps track of which items have data to be written (according to executed event handlers).
10101019
let mut dirty_items: HashSet<u64> = HashSet::new();
10111020

0 commit comments

Comments
 (0)