Fixed a bug introduced in my refactoring. (FELIX-910)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@739462 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java
index 25b6167..f15ad1b 100644
--- a/framework/src/main/java/org/apache/felix/framework/Felix.java
+++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -622,15 +622,14 @@
synchronized (this)
{
- final int state = getState();
// Initialize if necessary.
- if ((state == Bundle.INSTALLED) || (state == Bundle.RESOLVED))
+ if ((getState() == Bundle.INSTALLED) || (getState() == Bundle.RESOLVED))
{
init();
}
// If the current state is STARTING, then the system bundle can be started.
- if (state == Bundle.STARTING)
+ if (getState() == Bundle.STARTING)
{
// Get the framework's default start level.
String s = (String) m_configMap.get(Constants.FRAMEWORK_BEGINNING_STARTLEVEL);