Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[modesetting] Replace questionable async timer with sleep loop. JB#42757
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: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
11 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters