Skip to content

Commit

Permalink
travis
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Dec 16, 2016
1 parent d5501fa commit 325c244
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/util/worker.c
Expand Up @@ -202,10 +202,13 @@ static void fr_worker_evfilt_user(UNUSED int kq, struct kevent const *kev, void
break;

case FR_CHANNEL_DATA_READY_WORKER:
rad_assert(ch != NULL);
fr_worker_drain_input(worker, ch, NULL);
break;

case FR_CHANNEL_OPEN:
rad_assert(ch != NULL);

ok = false;
for (i = 0; i < worker->max_channels; i++) {
if (worker->channel[i] != NULL) continue;
Expand All @@ -227,6 +230,8 @@ static void fr_worker_evfilt_user(UNUSED int kq, struct kevent const *kev, void
break;

case FR_CHANNEL_CLOSE:
rad_assert(ch != NULL);

ok = false;
for (i = 0; i < worker->max_channels; i++) {
if (worker->channel[i] != ch) continue;
Expand Down

0 comments on commit 325c244

Please sign in to comment.