1
0
Fork 0

properly shutdown SSL tasks

This commit is contained in:
Jan Steemann 2012-07-24 11:44:15 +02:00
parent 649657d2c4
commit 406a47008e
1 changed files with 4 additions and 0 deletions

View File

@ -266,6 +266,10 @@ void HttpsServer::handleConnected (socket_t socket, ConnectionInfo& info) {
// create a https task
SocketTask* task = new HttpsAsyncCommTask(this, socket, info, sbio);
GENERAL_SERVER_LOCK(&this->_commTasksLock);
this->_commTasks.insert(dynamic_cast<GeneralCommTask<HttpServer, HttpHandlerFactory>*>(task));
GENERAL_SERVER_UNLOCK(&this->_commTasksLock);
// and register it
_scheduler->registerTask(task);