mirror of
				https://github.com/zeromq/libzmq.git
				synced 2025-10-26 02:18:06 +01:00 
			
		
		
		
	Problem: rm_fd code duplicated across stream_connecter_t subclasses
Solution: pull up tcp_connecter_t::rm_handle and use in all subclasses
This commit is contained in:
		| @@ -142,12 +142,6 @@ void zmq::tcp_connecter_t::out_event () | ||||
|     _socket->event_connected (_endpoint, fd); | ||||
| } | ||||
|  | ||||
| void zmq::tcp_connecter_t::rm_handle () | ||||
| { | ||||
|     rm_fd (_handle); | ||||
|     _handle = static_cast<handle_t> (NULL); | ||||
| } | ||||
|  | ||||
| void zmq::tcp_connecter_t::timer_event (int id_) | ||||
| { | ||||
|     zmq_assert (id_ == reconnect_timer_id || id_ == connect_timer_id); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Giesecke
					Simon Giesecke