We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6497e4 commit 89b8a21Copy full SHA for 89b8a21
services/java/com/android/server/NetworkManagementService.java
@@ -238,6 +238,11 @@ private void notifyInterfaceAdded(String iface) {
238
* Notify our observers of an interface removal.
239
*/
240
private void notifyInterfaceRemoved(String iface) {
241
+ // netd already clears out quota and alerts for removed ifaces; update
242
+ // our sanity-checking state.
243
+ mActiveAlertIfaces.remove(iface);
244
+ mActiveQuotaIfaces.remove(iface);
245
+
246
for (INetworkManagementEventObserver obs : mObservers) {
247
try {
248
obs.interfaceRemoved(iface);
0 commit comments