Use any::reset()

This commit is contained in:
an-tao 2019-01-07 21:19:51 +08:00
parent ee2517c52b
commit 6a4f38bdaf
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ void HttpServer::onConnection(const TcpConnectionPtr &conn)
{
_disconnectWebsocketCallback(context->webSocketConn());
}
conn->setContext(std::string("None"));
conn->getMutableContext()->reset();
}
_connectionCallback(conn);
}