[Goodies-commits] r5238 -	xfce4-mailwatch-plugin/trunk/libmailwatch-core
    Brian Tarricone 
    kelnos at xfce.org
       
    Sat Aug 16 10:48:43 CEST 2008
    
    
  
Author: kelnos
Date: 2008-08-16 08:48:43 +0000 (Sat, 16 Aug 2008)
New Revision: 5238
Modified:
   xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-net-conn.c
Log:
don't close the socket if we successfully connected
Modified: xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-net-conn.c
===================================================================
--- xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-net-conn.c	2008-08-16 08:48:32 UTC (rev 5237)
+++ xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-net-conn.c	2008-08-16 08:48:43 UTC (rev 5238)
@@ -472,7 +472,7 @@
 
 out_err:
     
-    if(net_conn->fd != -1) {  /* needed for the gotos */
+    if(!connect_succeeded && net_conn->fd != -1) {  /* needed for the gotos */
         shutdown(net_conn->fd, SHUT_RDWR);
         close(net_conn->fd);
         net_conn->fd = -1;
    
    
More information about the Goodies-commits
mailing list