We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f751210 + 89b8a21 commit 69f364aCopy full SHA for 69f364a
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