clear cache on failure
This commit is contained in:
		| @@ -58,6 +58,7 @@ void packet_client::close_all() { | ||||
|   } | ||||
|  | ||||
|   clients_.clear(); | ||||
|   io_context_ = boost::asio::io_context{}; | ||||
|   unique_id_ = utils::create_uuid_string(); | ||||
| } | ||||
|  | ||||
| @@ -77,6 +78,7 @@ void packet_client::connect(client &cli) { | ||||
|     } | ||||
|   } catch (const std::exception &e) { | ||||
|     utils::error::raise_error(function_name, e, "connection handshake failed"); | ||||
|     resolve_results_.clear(); | ||||
|   } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user