Remove exception and update server check in StopService
This commit is contained in:
		@@ -11,7 +11,6 @@ class StopService
 | 
				
			|||||||
    public function handle(Service $service)
 | 
					    public function handle(Service $service)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            throw new \Exception('Not implemented');
 | 
					 | 
				
			||||||
            $server = $service->destination->server;
 | 
					            $server = $service->destination->server;
 | 
				
			||||||
            if (!$server->isFunctional()) {
 | 
					            if (!$server->isFunctional()) {
 | 
				
			||||||
                return 'Server is not functional';
 | 
					                return 'Server is not functional';
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user