Changeset 5145
- Timestamp:
- 12/16/07 14:21:44 (7 months ago)
- Files:
-
- wire/trunk/wire/client.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/wire/client.c
r5079 r5145 217 217 wi_address_set_port(address, port); 218 218 219 socket = wi_socket_init_with_address(wi_socket_alloc(), address, WI_SOCKET_TCP); 219 socket = wi_autorelease(wi_socket_init_with_address(wi_socket_alloc(), address, WI_SOCKET_TCP)); 220 221 if(!socket) { 222 wr_printf_prefix(WI_STR("Could not open a socket to %@: %m"), ip); 223 224 continue; 225 } 226 220 227 wi_socket_set_interactive(socket, true); 221 228 … … 223 230 wr_printf_prefix(WI_STR("Could not connect to %@: %m"), ip); 224 231 225 goto next;232 continue; 226 233 } 227 234 … … 242 249 wr_send_command(WI_STR("HELLO")); 243 250 244 next: 245 wi_release(socket); 246 247 if(wr_connected) 248 break; 251 break; 249 252 } 250 253
