Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[worker] Stop mtp daemon on mode switch. JB#43781
If entry to mtp mode gets aborted due to cable disconnect, it is possible that mtp daemon has already been started but it does not yet show up when probing. This can lead to leaving stray/defunct mtp daemon instances behind - which then can cause attempt to activate mtp mode after reconnect to fail. When leaving mode, stop mtp daemon if it seems to be running or we have made an attempt to start it. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
20 additions
and
7 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