Ticket #3800 (new defect)
In "My Settings" -> "ModemConfiguration", convert the procedure to process the results of "connection.get_secrets('gsm', _secrets_cb, _secrets_err_cb)" from pseudo-asynchronous to asynchronous.
| Reported by: | ajay_garg | Owned by: | erikos |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | Unspecified by Release Team |
| Component: | sugar | Version: | Git as of bugdate |
| Severity: | Unspecified | Keywords: | |
| Cc: | quozl, ajay_garg | Distribution/OS: | Unspecified |
| Bug Status: | Unconfirmed |
Description
In the method "get_modem_settings()", we call "connection.get_secrets('gsm', _secrets_cb, _secrets_err_cb)". This is an asynchronous call.
As of now, we busy wait, till the specified "result" callback is called (which in this case happens to be "def _secrets_cb(secrets)". After this is called, we return the modem-settings.
Instead of busy waiting, pass a callabck from the callee function. Thereafter, when "def _secrets_cb(secrets)" is hit, execute this callback function, passing the modem-settings.
Change History
Note: See
TracTickets for help on using
tickets.
