Currently the listeners for disconnected and failed connection events are unsubscribed as soon as the connection is established, so the CONNECTION_DISCONNECTED is never triggered which would clear the 'connection' field. This commit will clear the 'connection' state on CONNECTION_WILL_CONNECT. It's needed anyway given that there's no guarantee on when and if the async disconnect operation will finish. One issue caused by the 'connection' not cleared was that CONNECTION_FAILED was not reduced correctly and the reload screen was not displayed for the following scenario: 1. Join and leave any working conference. 2. Turn off network connectivity on the device. 3. Wait for CONNECTION_FAILED. The reload screen will not be displayed, because CONNECTION_FAILED is not reduced correctly, because the old 'connection' value is still there.master
|
|
||
| 57 |
|
57 |
|
| 58 |
|
58 |
|
| 59 |
|
59 |
|
| 60 |
|
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
| 61 |
|
63 |
|
| 62 |
|
64 |
|
| 63 |
|
65 |
|
|
|
||
| 104 |
|
106 |
|
| 105 |
|
107 |
|
| 106 |
|
108 |
|
| 107 |
|
|
|
| 108 |
|
|
|
| 109 |
|
|
|
| 110 |
|
|
|
| 111 |
|
|
|
|
109 |
|
|
| 112 |
|
110 |
|
| 113 |
|
111 |
|
| 114 |
|
112 |
|
|
|
||
| 139 |
|
137 |
|
| 140 |
|
138 |
|
| 141 |
|
139 |
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
|
|
| 142 |
|
145 |
|
| 143 |
|
146 |
|
| 144 |
|
147 |
|
|
|
||
| 188 |
|
191 |
|
| 189 |
|
192 |
|
| 190 |
|
193 |
|
|
194 |
|
|
|
195 |
|
|
|
196 |
|
|
|
197 |
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
|
|
| 191 |
|
207 |
|
| 192 |
|
208 |
|
| 193 |
|
209 |
|