mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
				synced 2025-11-04 04:37:46 +00:00 
			
		
		
		
	Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
		@@ -144,7 +144,12 @@ namespace OpenWifi::RESTAPI_RPC {
 | 
			
		||||
			Logger.information( fmt::format("{}: Completed in {:.3f}ms.", Cmd.UUID, Cmd.executionTime));
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
		Logger.information(fmt::format( "{}: Pending completion.", Cmd.UUID));
 | 
			
		||||
		SetCommandStatus(Cmd, Request, Response, Handler, Storage::COMMAND_PENDING, Logger);
 | 
			
		||||
		if(RetryLater) {
 | 
			
		||||
			Logger.information(fmt::format("{}: Pending completion.", Cmd.UUID));
 | 
			
		||||
			SetCommandStatus(Cmd, Request, Response, Handler, Storage::COMMAND_PENDING, Logger);
 | 
			
		||||
		} else {
 | 
			
		||||
			Logger.information(fmt::format("{}: Command canceled. Device is not connected. Command will not be retried.", Cmd.UUID));
 | 
			
		||||
			return SetCommandStatus(Cmd, Request, Response, Handler, Storage::COMMAND_FAILED, Logger);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user