diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-06-02 11:04:35 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-06-05 14:04:42 +0200 |
commit | 08782995e2db3e3e86f5cad54825d79eec68d0f2 (patch) | |
tree | 44d0c47ace9946da9aecc1dc2fbf9d27e14a9e4a /docs/man/ModemManager.8 | |
parent | d6779b91b23e207beb9591461b25c2201f3831b9 (diff) |
telit: rework QSS unsolicited handler enabling logic
When the async method starts we store already the primary and the
optional secondary port objects in the method context, keeping a full
reference for each.
When we parse the response for the enabling command, we just reuse the
stored port objects, instead of re-querying the modem to get them, and
this makes sure that the port objects where we want to set the
unsolicited message handlers are still valid. If the ports are gone
in the middle of the enabling operation, the handlers will be set
without errors, even if the ports may likely get completely disposed
when this async method context is disposed.
Additionally, we make sure that we return an error also for the case
where there is no secondary port and the enabling on the primary port
failed.
This patch also fixes the use of the at_command_full_finish() method to
complete the at_command_full() async operation, to keep consistency.
Diffstat (limited to 'docs/man/ModemManager.8')
0 files changed, 0 insertions, 0 deletions