Skip to contentSkip to conversation

service: 'ready' Status ProprtyChanged not sent

DISCUSSION Geoffrey Van Landeghem 1 participant 1 message Nov 23, 2022

lore
Share & tools
lore
#0 lore raw

Subject: service: 'ready' Status ProprtyChanged not sent

After further inspection I could trace back that following lines:

static void service_schedule_changed(void)
{
    if (services_notify->id != 0)
        return;

    services_notify->id = g_timeout_add(100, service_send_changed, NULL); }

... have been in connman for over a decade. When services get added and removed it makes sense to just wait a bit until all of that is done in order to avoid race condition and such. Unless some one has a better idea I think it's best to leave that intact, still I think in that case it should be documented as a known issue. What do you think?