summaryrefslogtreecommitdiff
path: root/includes/HttpServer.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-18 11:13:36 -0800
committerPixel <pixel@nobis-crew.org>2011-11-18 11:13:36 -0800
commitde9f8a69c44e2c7debde51efdf3af0298b8d03d1 (patch)
tree3291ca2c03f86cd7f160696a956faedf06579972 /includes/HttpServer.h
parent5708e1818b819151f7f63b0edc906a40a08ffff4 (diff)
Got this one wrong; one need to get the refcount to 0 to delete itself.
Diffstat (limited to 'includes/HttpServer.h')
-rw-r--r--includes/HttpServer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/HttpServer.h b/includes/HttpServer.h
index 2226d23..c2e8992 100644
--- a/includes/HttpServer.h
+++ b/includes/HttpServer.h
@@ -26,7 +26,7 @@ class HttpServer {
~Action() { Assert(m_refCount == 0); }
typedef std::pair<Regex::Captures, Regex::Captures> ActionMatches;
ActionMatches matches(const char * uri, const char * host);
- void unref() { if (Atomic::Prefetch::Decrement(&m_refCount) == 0) delete this; }
+ void unref() { if (Atomic::Decrement(&m_refCount) == 0) delete this; }
void ref() { Atomic::Increment(&m_refCount); }
void registerMe(HttpServer * server) { server->registerAction(this); }
virtual bool Do(HttpServer * server, ActionMatches & m, IO<Handle> out, StringMap & vars, StringMap & headers, FileList & files) = 0;