commit | d1993845610d601edfa58b08ddcc78a7ea9f36e2 | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Wed Mar 23 06:53:22 2016 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Wed Mar 23 06:53:22 2016 +0000 |
tree | 96853cae687b325d7962e64b9760dd2903c70d4e | |
parent | e453c0d75a7f2bfe385802fab05dcd1239e2d684 [diff] |
FELIX-5199 : Race condition in HttpServiceFactory.getService() causing exception git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1736278 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java b/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java index 503c476..1de4b37 100644 --- a/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java +++ b/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceFactory.java
@@ -111,9 +111,8 @@ this.sharedHttpService = new SharedHttpServiceImpl(handlerRegistry); final String[] ifaces = new String[] { HttpService.class.getName(), ExtHttpService.class.getName() }; - this.httpServiceReg = bundleContext.registerService(ifaces, this, this.httpServiceProps); - this.active = true; + this.httpServiceReg = bundleContext.registerService(ifaces, this, this.httpServiceProps); } public void stop()