• spiiroin's avatar
    [dsme] Avoid recursion during dsmesock disconnecting. JB#38474 · fba9d870
    spiiroin authored
    Some dsmesock disconnect issues were found from mce code tree. As the
    usb-moded code is derived from mce, similar fixes need to be made also
    Avoid recursive process watchdog quits during disconnect by doing the
    quitting only once / connect after removal of socket io watch.
    Drop reconnect attempts on I/O error situations as they are unlikely
    to do any good and can lead to further recursive behavior.
    Do not initiate new dsmesock connections while device is shutting down.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
usb_moded-dsme.c 25.3 KB