summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project2/cgi/cgiAppEngine.cpp2
-rw-r--r--project2/cgi/cgiAppEngine.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/project2/cgi/cgiAppEngine.cpp b/project2/cgi/cgiAppEngine.cpp
index d8871ca..799196d 100644
--- a/project2/cgi/cgiAppEngine.cpp
+++ b/project2/cgi/cgiAppEngine.cpp
@@ -29,7 +29,6 @@ CgiApplicationEngine::CgiApplicationEngine(const CgiEnvironment * e, std::ostrea
catch (const NoSuchCookie &) {
cursession = sessionsContainer->GetSession(UUID());
}
- currentStage = NextStage(new InitialStage());
}
CgiApplicationEngine::~CgiApplicationEngine()
@@ -65,6 +64,7 @@ CgiApplicationEngine::process() const
startTime = boost::date_time::microsec_clock<boost::posix_time::ptime>::universal_time();
bool triedNotFound = false;
bool triedOnError = false;
+ NextStage currentStage = NextStage(new InitialStage());
do {
try {
currentStage = currentStage.get<0>()->run();
diff --git a/project2/cgi/cgiAppEngine.h b/project2/cgi/cgiAppEngine.h
index 50c9a7f..69767be 100644
--- a/project2/cgi/cgiAppEngine.h
+++ b/project2/cgi/cgiAppEngine.h
@@ -163,7 +163,6 @@ class CgiApplicationEngine : public ApplicationEngine, public TransformChainLink
};
private:
- mutable NextStage currentStage;
SessionPtr cursession;
std::ostream & IO;
mutable bool outputCachingActive;