Added client disconnect when server shuts down

This commit is contained in:
Obique
2015-05-16 20:16:01 -05:00
committed by Obique
parent ade367266d
commit 7c97a6ec57
7 changed files with 90 additions and 22 deletions
+9 -1
View File
@@ -62,6 +62,15 @@ public class Service implements IntentReceiver {
return DataManager.getInstance().isInitialized();
}
/**
* Stops the service. If the service returns false on this method then the
* service failed to stop and may not have fully locked down.
* @return TRUE if stopping was successful, FALSe otherwise
*/
public boolean stop() {
return true;
}
/**
* Terminates this service. If the service returns false on this method
* then the service failed to shut down and resources may not have been
@@ -69,7 +78,6 @@ public class Service implements IntentReceiver {
* @return TRUE if termination was successful, FALSE otherwise
*/
public boolean terminate() {
IntentManager.getInstance().terminate();
return ServerManager.getInstance().terminate();
}