Merge lp:~matzipan/capnet-assist/no-internet-fix into lp:~elementary-apps/capnet-assist/trunk
Proposed by
Zisu Andrei
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Cody Garver | ||||||||
Approved revision: | 76 | ||||||||
Merged at revision: | 78 | ||||||||
Proposed branch: | lp:~matzipan/capnet-assist/no-internet-fix | ||||||||
Merge into: | lp:~elementary-apps/capnet-assist/trunk | ||||||||
Diff against target: |
61 lines (+17/-8) 1 file modified
src/CaptiveLogin.vala (+17/-8) |
||||||||
To merge this branch: | bzr merge lp:~matzipan/capnet-assist/no-internet-fix | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zisu Andrei (community) | test | Approve | |
Review via email: mp+300306@code.launchpad.net |
Commit message
Fix assistant triggering on connections without internet
Description of the change
Before, if the network connection had no internet, soup would try and fetch the URL and it would timeout after about 10-15 seconds, returning a status code of 2. Because if the comparison in the isLoggedIn method, this returned false, so the captive portal would trigger even if there was no internet connection.
This MR also prevents the captive portal from closing when connection is acquired, as sometimes there is valuable information displayed there (including download links)
To post a comment you must log in.
To test, unplug the internet connection from your router, and toggle the connection off and back on, the unpatched captive portal should kick-in after about 15 seconds. The patch version should not do that.