You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2020/02/25 08:12:56 UTC
[sling-org-apache-sling-installer-core] branch master updated:
SLING-9139 only unregister URLHandler once
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-core.git
The following commit(s) were added to refs/heads/master by this push:
new 112ac08 SLING-9139 only unregister URLHandler once
112ac08 is described below
commit 112ac0800183c7cc57fe4e5e3319a46e2f0ddf3b
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Tue Feb 25 09:12:48 2020 +0100
SLING-9139 only unregister URLHandler once
---
.../java/org/apache/sling/installer/core/impl/UpdateHandlerTracker.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/installer/core/impl/UpdateHandlerTracker.java b/src/main/java/org/apache/sling/installer/core/impl/UpdateHandlerTracker.java
index f907486..a4403cb 100644
--- a/src/main/java/org/apache/sling/installer/core/impl/UpdateHandlerTracker.java
+++ b/src/main/java/org/apache/sling/installer/core/impl/UpdateHandlerTracker.java
@@ -18,7 +18,6 @@
*/
package org.apache.sling.installer.core.impl;
-import java.security.ProtectionDomain;
import java.util.Dictionary;
import java.util.HashMap;
import java.util.Hashtable;
@@ -88,6 +87,7 @@ public class UpdateHandlerTracker extends SortingServiceTracker<UpdateHandler> {
if (schemeUseCount.isEmpty()) {
if (urlHandler != null) {
urlHandler.unregister();
+ urlHandler = null;
}
} else {
if (urlHandler == null) {