Throw an exception per the spec if unregistered more than once.


git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@419038 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java
index f8a15a0..035eebd 100644
--- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java
+++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java
@@ -97,6 +97,10 @@
             m_svcObj = null;
             m_factory = null;
         }
+        else
+        {
+            throw new IllegalStateException("Service already unregistered.");
+        }
     }
 
     //