Skip to content
Snippets Groups Projects
Commit f55c166c authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Cosmetic changes

parent 972da444
Branches
Tags
No related merge requests found
......@@ -113,6 +113,5 @@ void castor::server::TCPListenerThreadPool::terminate(void* param) {
// Here a proper implementation is to answer the client to try again later on.
// As the standard castor clients have no retry mechanism, we simply close the
// connection, which will make them fail (the process would have failed anyway).
s->close();
delete s;
delete s; // internally calls close
}
......@@ -87,8 +87,8 @@ void castor::server::UDPListenerThreadPool::listenLoop() {
// terminate
//------------------------------------------------------------------------------
void castor::server::UDPListenerThreadPool::terminate(void* param) {
castor::IObject* obj = (castor::IObject*)param;
// UDP is best-effort, don't bother contacting the client but free allocated memory
delete obj;
castor::IObject* obj = (castor::IObject*)param;
// UDP is best-effort, don't bother contacting the client but free allocated memory
delete obj;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment