summaryrefslogtreecommitdiff
path: root/services/contentcapture
diff options
context:
space:
mode:
authorSergey Volnov <volnov@google.com>2020-02-13 17:56:45 +0000
committerSergey Volnov <volnov@google.com>2020-02-13 17:56:45 +0000
commit63f5f3a40ff8e660172b1955bf028acd898bf199 (patch)
tree9c860029a1796dbb679125a9082bc6555dd55aea /services/contentcapture
parent5cf71d715e75abd93715c9e4f2182aa1b2d57c51 (diff)
After data was successfully copied - mark package as able to receive new
sharing requrests. Bug: 145205247 Test: this was actually surfaced during CTS tests implementation, when subsequent test executions failed because of needing a timeout. Change-Id: I529216d0e9139f165f90bdaab80850c4c047f836
Diffstat (limited to 'services/contentcapture')
-rw-r--r--services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java b/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java
index 31ea5faa05f1..9a33fc9548a0 100644
--- a/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java
+++ b/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java
@@ -998,6 +998,11 @@ public final class ContentCaptureManagerService extends
sendErrorSignal(mClientAdapterReference, serviceAdapterReference,
ContentCaptureManager.DATA_SHARE_ERROR_UNKNOWN);
+ } finally {
+ synchronized (parentService.mLock) {
+ parentService.mPackagesWithShareRequests
+ .remove(mDataShareRequest.getPackageName());
+ }
}
});