• spiiroin's avatar
    [modesetting] Replace questionable async timer with sleep loop. JB#42757 · 1d9e91e4
    spiiroin authored
    In case of network setup failure usb-moded utilizes glib timer to retry
    the operation once once after 3 second delay. How well that has worked is
    a bit questionable as the dynamic mode setup continues with things that
    probably require functional network. Also, while it used to be guaranteed
    that the timer would not trigger before the synchronous mode switch
    operations have finished, this is no longer guaranteed due to the use of
    worker thread for the mode switch.
    
    Use retry three times with one second delay between retries instead of
    relying on a three second asynchronous timer with hazardous triggering
    time and context.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    1d9e91e4
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.depend Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.custom Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config-static.h Loading commit data...
configure.ac Loading commit data...
depend_filter.py Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...