Skip to content

Commit 5f85a77

Browse files
committed
Soften handover doc comment in NetworkConnectionMonitor
Clarify that the available-networks set only stays non-empty during a handover when the replacement network is already up; no code change.
1 parent cadb804 commit 5f85a77

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

WordPress/src/main/java/org/wordpress/android/networking/NetworkConnectionMonitor.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import javax.inject.Singleton
2323
* `onEventMainThread` subscribers back onto the main thread.
2424
*
2525
* Connectivity is tracked as the set of currently-available internet-capable networks rather than a single
26-
* network. During a handover (e.g. Wi-Fi -> cellular) the replacement is added before the old one is removed,
27-
* so the set never empties and the handover is not misreported as a disconnection; a genuine disconnect
28-
* empties the set and is reported reliably.
26+
* network. During a handover (e.g. Wi-Fi -> cellular) where the replacement is already up, it is added before
27+
* the old one is removed, so the set doesn't empty and the handover isn't misreported as a disconnection; a
28+
* genuine disconnect empties the set and is reported reliably.
2929
*/
3030
@Singleton
3131
class NetworkConnectionMonitor @Inject constructor() {

0 commit comments

Comments
 (0)