Skip to content

Commit

Permalink
test: event_handler early exit for UA_EVENT_CREATE
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Aug 21, 2024
1 parent 8192d52 commit 708bd58
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,9 @@ static void event_handler(enum ua_event ev, struct bevent *event, void *arg)
ASSERT_TRUE(f != NULL);
ASSERT_EQ(MAGIC, f->magic);

if (ev == UA_EVENT_CREATE)
return;

if (!ua)
ua = uag_find_msg(msg);

Expand All @@ -647,9 +650,7 @@ static void event_handler(enum ua_event ev, struct bevent *event, void *arg)
else if (ua == f->c.ua)
ag = &f->c;
else {
if (ev != UA_EVENT_CREATE)
warning("test: could not find agent/ua\n");

warning("test: could not find agent/ua\n");
return;
}

Expand Down

0 comments on commit 708bd58

Please sign in to comment.