/[svn]/liblscp/trunk/src/socket.c
ViewVC logotype

Diff of /liblscp/trunk/src/socket.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 177 by capela, Thu Jun 24 18:25:11 2004 UTC revision 178 by capela, Tue Jul 6 15:52:25 2004 UTC
# Line 237  lscp_status_t lscp_socket_agent_free ( l Line 237  lscp_status_t lscp_socket_agent_free ( l
237  {  {
238      lscp_status_t ret = LSCP_FAILED;      lscp_status_t ret = LSCP_FAILED;
239    
240        if (pAgent->iState)
241            pAgent->iState = 0;
242    
243      if (pAgent->sock != INVALID_SOCKET)      if (pAgent->sock != INVALID_SOCKET)
244          closesocket(pAgent->sock);          closesocket(pAgent->sock);
245      pAgent->sock = INVALID_SOCKET;      pAgent->sock = INVALID_SOCKET;
246    
     if (pAgent->iState)  
         pAgent->iState = 0;  
   
247      if (pAgent->pThread)      if (pAgent->pThread)
248          ret = lscp_thread_destroy(pAgent->pThread);          ret = lscp_thread_destroy(pAgent->pThread);
249      pAgent->pThread = NULL;      pAgent->pThread = NULL;

Legend:
Removed from v.177  
changed lines
  Added in v.178

  ViewVC Help
Powered by ViewVC