commit | 10139b2da372d561b639613031d8add781b29d0c | [log] [tgz] |
---|---|---|
author | Hall Liu <hallliu@google.com> | Mon Mar 06 19:28:04 2017 -0800 |
committer | Hall Liu <hallliu@google.com> | Thu Mar 09 21:43:23 2017 +0000 |
tree | 348c4168f9ba078755026d5e7c9cd9e9e60d02f9 | |
parent | 18f843be394158cc564c06d4e1844cfec36ea3ed [diff] |
Remove old pending calls if not reused When trying to make an outgoing call, remove all of the pending outgoing calls from the iterator if we're not going to use them again. Test: manual Bug: 33842702 Change-Id: I414624172b74772fa9a75626e6675afead5b6ee4
diff --git a/src/com/android/server/telecom/CallsManager.java b/src/com/android/server/telecom/CallsManager.java index f23aa41..5359859 100644 --- a/src/com/android/server/telecom/CallsManager.java +++ b/src/com/android/server/telecom/CallsManager.java
@@ -799,6 +799,7 @@ reusedCall = pendingCall; } else { Log.i(this, "Not reusing disconnected call %s", pendingCall); + callIter.remove(); pendingCall.disconnect(); } }