diff mcabber/src/jabglue.c @ 409:82064124324d

Fix a SIGPIPE issue when connecting to the server This change fixes a SIGPIPE when cw_nb_connect() is called too fast after make_nb_netsocket(). In this case getsockopt() reports a wrong value (no error) and the first jab_send_raw() in jconn.c gets a SIGPIPE. The delay in jabglue.c can then be removed.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 27 Aug 2005 22:20:03 +0200
parents 73433860665c
children d35050efb5ac
line wrap: on
line diff
--- a/mcabber/src/jabglue.c	Sat Aug 27 18:59:48 2005 +0200
+++ b/mcabber/src/jabglue.c	Sat Aug 27 22:20:03 2005 +0200
@@ -196,7 +196,6 @@
   }
 
   if (jc && jc->state == JCONN_STATE_CONNECTING) {
-    usleep(150000);
     jab_start(jc);
     return;
   }