Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Nov 5, 2024
1 parent 32c5ba8 commit 7c51aa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ lf_ret_t Action_schedule(Action *self, interval_t offset, const void *value) {
// Dont accept events before we have started
// TODO: Do we instead need some flag to signal that we have started?
if (sched->start_time == NEVER) {
LF_ERR(TRIG, "Action %p cannot schedule events before start tag", self);
env->leave_critical_section(env);
LF_ERR(TRIG, "Action %p cannot schedule events before start tag", self);
return LF_ERR;
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/request_shutdown_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ DEFINE_REACTION_BODY(MyReactor, 0) {
}

lf_schedule(my_action, MSEC(1), ++self->cnt);
lf_schedule(my_action, MSEC(1), ++self->cnt);
lf_schedule(my_action, MSEC(2), ++self->cnt);
}
DEFINE_REACTION_CTOR(MyReactor, 0);

Expand Down

0 comments on commit 7c51aa1

Please sign in to comment.