mirror of
https://github.com/Xcreen/RestSMS.git
synced 2026-04-19 14:48:06 -04:00
Use function to check if server can be stopped
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user