The RPC stop command was not working (the node did exit completely) because the stop callback was never called because the callback was called after the node was stopped and the stop callback needed the node to execute. This commit removes the node stop before the callback and let's the stop call back execute, which should stop io_ctx after 3 seconds, which in turn should exit the daemon and the node should be stopped by its destructor.
This commit is contained in:
		
					parent
					
						
							
								8602d3554b
							
						
					
				
			
			
				commit
				
					
						59e5c76092
					
				
			
		
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3826,7 +3826,6 @@ void nano::json_handler::stop ()
 | 
			
		|||
	response_errors ();
 | 
			
		||||
	if (!ec)
 | 
			
		||||
	{
 | 
			
		||||
		node.stop ();
 | 
			
		||||
		stop_callback ();
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue