| 2949 | } |
| 2950 | |
| 2951 | void routing_manager_impl::start_ip_routing() { |
| 2952 | #if defined(_WIN32) || defined(__QNX__) |
| 2953 | if_state_running_ = true; |
| 2954 | sd_route_set_ = true; |
| 2955 | #endif |
| 2956 | |
| 2957 | if (routing_ready_handler_) { |
| 2958 | routing_ready_handler_(); |
| 2959 | } |
| 2960 | |
| 2961 | if (discovery_) { |
| 2962 | if (!is_suspended()) { |
| 2963 | discovery_->start(); |
| 2964 | } |
| 2965 | } else { |
| 2966 | init_routing_info(); |
| 2967 | } |
| 2968 | |
| 2969 | routing_running_ = true; |
| 2970 | } |
| 2971 | |
| 2972 | void routing_manager_impl::init_pending_services() { |
| 2973 | std::scoped_lock its_lock(pending_sd_offers_mutex_); |