Skip to content
Snippets Groups Projects
Commit f07b08c1 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a problem when the socket client was remotelly closed. The...

Solved a problem when the socket client was remotelly closed. The corresponding event was active even after calling the close() function.
parent f0a95810
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,8 @@ void CSocket::hard_close(void)
if(::close(this->socket_fd)<0)
throw CSocketException(_HERE_,"Error while closing the socket",this->comm_id);
this->socket_fd=-1;
if(this->event_server->event_is_set(this->connection_closed_event))
this->event_server->reset_event(this->connection_closed_event);
}
this->cloned=false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment