Use function to check if server can be stopped

This commit is contained in:
Xcreen
2018-11-13 10:11:35 +01:00
parent c088d2fd62
commit f2c0ba8ecb

View File

@@ -40,7 +40,7 @@ public class SMSServer {
* @throws Exception - Jetty Exception
*/
public void stop() throws Exception{
if(jettyServer != null) {
if(!isStopping()) {
serverLogging.log("info", "Stopping Server...");
jettyServer.stop();
}