Skip to content

Commit

Permalink
nanny: Handle DEVICE_CREATE and DEVICE_READY events
Browse files Browse the repository at this point in the history
- DEVICE_CREATE is ignored
- DEVICE_READY refreshes given worker and registers it
  • Loading branch information
wipawel committed Jul 9, 2014
1 parent f4bdc98 commit 05d023b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nanny/nanny.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,10 @@ ni_nanny_netif_state_change_signal_receive(ni_dbus_connection_t *conn, ni_dbus_m
return;
}

if (event == NI_EVENT_DEVICE_CREATE) {
if (event == NI_EVENT_DEVICE_CREATE)
return;

if (event == NI_EVENT_DEVICE_READY) {
if ((w = ni_fsm_recv_new_netif_path(mgr->fsm, object_path)))
ni_nanny_register_device(mgr, w);
}
Expand Down

0 comments on commit 05d023b

Please sign in to comment.