summaryrefslogtreecommitdiffstats
path: root/source/l/loudmouth/loudmouth.async_assertion.diff
blob: bda1d19b1437932ce3ab9ad31cec8446e979f975 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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