slackware-current/source/l/loudmouth/loudmouth.async_assertion.diff

20 lines
691 B
Diff
Raw Normal View History

diff -urp loudmouth-1.4.3.OLD/loudmouth/lm-socket.c loudmouth-1.4.3/loudmouth/lm-socket.c
--- loudmouth-1.4.3.OLD/loudmouth/lm-socket.c 2008-10-29 12:29:16.000000000 -0400
+++ loudmouth-1.4.3/loudmouth/lm-socket.c 2008-11-28 19:24:04.000000000 -0500
@@ -1107,6 +1107,7 @@ lm_socket_create (GMainContext *con
_lm_socket_create_phase1 (socket, NULL, 0);
}
+#ifndef HAVE_ASYNCNS
if (socket->connect_data == NULL) {
/* Open failed synchronously, probably a DNS lookup problem */
lm_socket_unref(socket);
@@ -1118,6 +1119,7 @@ lm_socket_create (GMainContext *con
return NULL;
}
+#endif
/* If the connection fails synchronously, we don't want to call the