1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-wifid: postpone the emittion of managed signal after the status

query
This commit is contained in:
Derek Dai 2017-03-30 22:58:34 +08:00
parent f46617383d
commit 2da1f70ccd
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -1707,6 +1707,8 @@ static int supplicant_status_fn(struct wpas *w,
} else {
s->has_p2p = true;
link_supplicant_managed(s->l);
r = wpas_message_new_request(s->bus_global,
"SET",
&m);
@ -2577,7 +2579,6 @@ static int supplicant_timer_fn(sd_event_source *source,
} else {
/* wpas is running smoothly, disable timer */
sd_event_source_set_enabled(source, SD_EVENT_OFF);
link_supplicant_managed(s->l);
}
} else {
/* Who armed this timer? What timer is this? */