Closed Bug 1167054 Opened 10 years ago Closed 8 years ago

NetworkManager: unregisterNetworkInterface should clear active network

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: swu, Unassigned)

References

Details

Attachments

(1 file)

If an active network gets unrgistered, we should remove it from the active network. This may happen if the network has not been disconnected first. Edgar, may I have your feedback on this?
Assignee: nobody → swu
Attachment #8609186 - Flags: feedback?(echen)
Comment on attachment 8609186 [details] [diff] [review] Patch: clear active network when been unregistered Review of attachment 8609186 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/NetworkManager.js @@ +467,5 @@ > Cr.NS_ERROR_INVALID_ARG); > } > > + if (this.active == network) { > + this.active = null; When a network report DISCONNECTED, NetworkManager will do some clean-up for it, e.g. removing routing, dns, networkLink ... etc. IMHO, when a network do unregister without reporting DISCONNECTED first, we probably need to do same thing for it, otherwise device may stay in an unsynced situation. And also choose another network as active if any.
Attachment #8609186 - Flags: feedback?(echen)
Got it, thanks for the feedback.
Unassign myself, as I am not able to work on this in short term.
Assignee: swu → nobody
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: