CanonicalLtd / UCWifiConnect

The code of this project has been moved to https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/wifi-connect
GNU General Public License v3.0
2 stars 2 forks source link

Replace sleeps #32

Closed knitzsche closed 7 years ago

knitzsche commented 7 years ago

All time.Sleeps() (except those that are valid to, for example, delay loop iterations) are removed [1]. Instead, functions block until the external expected condition has been achieved (or a max number of iterations has been reached). Increased reliability and responsiveness.

[1] The 40 sec sleep in the first loop of the daemon remains.TBD investigate only sleeping here if wlan0 is managed by network manager to allow time for connections to establish. If not, we should continue directly with entering Management Mode.