Changeset 3136

Show
Ignore:
Timestamp:
12/15/07 13:55:24
Author:
pvanhoof
Message:

Cleaning up the socket

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-camel/camel-lite/camel/camel-tcp-stream-ssl.c

    r3135 r3136  
    702702        } 
    703703 
     704        PR_Shutdown (((CamelTcpStreamSSL *)stream)->priv->sockfd, PR_SHUTDOWN_BOTH); 
    704705        if (PR_Close (((CamelTcpStreamSSL *)stream)->priv->sockfd) == PR_FAILURE) 
    705706                return -1; 
     
    13211322                        set_errno (PR_GetError ()); 
    13221323                        errnosave = errno; 
     1324                        PR_Shutdown (fd, PR_SHUTDOWN_BOTH); 
    13231325                        PR_Close (fd); 
    13241326                        errno = errnosave; 
     
    13721374                exception: 
    13731375                        errnosave = errno; 
     1376                        PR_Shutdown (fd, PR_SHUTDOWN_BOTH); 
    13741377                        PR_Close (fd); 
    13751378                        ssl->priv->sockfd = NULL;