• chriadam's avatar
    [connman] Initialise counter table entry before registering service counter.... · db0374b5
    chriadam authored
    [connman] Initialise counter table entry before registering service counter. Contributes to JB#45681
    
    __connman_service_counter_register() calls service_send_initial_stats()
    which calls __connman_counter_send_usage() which attempts to look
    up the counter entry in the global counter table.
    
    This commit ensures that the counter entry is inserted into the
    global counter table prior to calling
    __connman_service_counter_register() to ensure that the initial
    statistics are sent to the counter.
    db0374b5
counter.c 4.76 KB