forked from pavelmachek/ofono
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qmimodem: Fix shared service creation logic
qmi_service_create_shared() tries to find already created service of the same type and if it fails to find one, start a creation of a new service. This creation takes some time, so if while it is not complete, any new calls to qmi_service_create_shared() will still fail to find a service of that type and will start creation. This can easily lead to client ids exhaustion and service creation failures. Fix that by adding logic that delays responses to any shared service creation requests after the first one, until that request either fails or succeeds. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
- Loading branch information
1 parent
9a5628a
commit 0e64709
Showing
1 changed file
with
97 additions
and
35 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