WebModules: Make PAGE_DONE imply Close()

When one now finishes a web request with PAGE_DONE, the code actively calls
Close(CLT_AFTERWRITE) which one previously had to call explicitly. This means
there is finally a difference between PAGE_DONE and PAGE_DEFERRED. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1981 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-05-13 15:54:06 +00:00
parent 3dbb918164
commit 0c0c51172e
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ public:
PAGE_NOTFOUND, // print 404 and Close()
PAGE_PRINT, // print page contents and Close()
PAGE_DEFERRED, // async processing, Close() will be called from a different place
PAGE_DONE // all stuff has been done and Close() has been called (e.g. by CHTTPSock::Redirect)
PAGE_DONE // all stuff has been done
};
CWebSock(CModule* pModule);