1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

Update to 1.1.3.

This commit is contained in:
Edward Tomasz Napierala 2009-03-11 13:24:37 +00:00
parent 954353222f
commit 2e57b3026c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229874
3 changed files with 4 additions and 42 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= wire
PORTVERSION= 1.1.2
PORTVERSION= 1.1.3
CATEGORIES= net
MASTER_SITES= http://www.zankasoftware.com/dist/ \
${MASTER_SITE_LOCAL}

View File

@ -1,3 +1,3 @@
MD5 (wire-1.1.2.tar.gz) = 3984b88c8c56e31e87b2fd69a265465f
SHA256 (wire-1.1.2.tar.gz) = a8c940888338eacd4022267b26ac168347bb64032bf73594a20bd319d81947ab
SIZE (wire-1.1.2.tar.gz) = 295643
MD5 (wire-1.1.3.tar.gz) = e89e73d486ac89de20b52e1150bc099a
SHA256 (wire-1.1.3.tar.gz) = d2e66377c0dd54028e1188b62c05845225e9e166cec0b5ea76cc0e6a96b681be
SIZE (wire-1.1.3.tar.gz) = 339306

View File

@ -1,38 +0,0 @@
--- wire/client.c (revision 5082)
+++ wire/client.c (revision 5145)
@@ -216,13 +216,20 @@
wi_address_set_port(address, port);
- socket = wi_socket_init_with_address(wi_socket_alloc(), address, WI_SOCKET_TCP);
+ socket = wi_autorelease(wi_socket_init_with_address(wi_socket_alloc(), address, WI_SOCKET_TCP));
+
+ if(!socket) {
+ wr_printf_prefix(WI_STR("Could not open a socket to %@: %m"), ip);
+
+ continue;
+ }
+
wi_socket_set_interactive(socket, true);
if(!wi_socket_connect(socket, wr_socket_context, 10.0)) {
wr_printf_prefix(WI_STR("Could not connect to %@: %m"), ip);
- goto next;
+ continue;
}
wr_printf_prefix(WI_STR("Connected using %@/%@/%u bits, logging in..."),
@@ -241,11 +248,7 @@
wr_runloop_add_socket(wr_socket, &wr_runloop_server_callback);
wr_send_command(WI_STR("HELLO"));
-next:
- wi_release(socket);
-
- if(wr_connected)
- break;
+ break;
}
if(wr_socket)