aboutsummaryrefslogtreecommitdiff
path: root/modules/httpd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/httpd.cpp')
-rw-r--r--modules/httpd.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/httpd.cpp b/modules/httpd.cpp
index fd63fb29d..82a113832 100644
--- a/modules/httpd.cpp
+++ b/modules/httpd.cpp
@@ -400,7 +400,7 @@ class HTTPdAPIImpl final
: public HTTPdAPIBase
{
public:
- HTTPdAPIImpl(Module* parent)
+ HTTPdAPIImpl(const WeakModulePtr& parent)
: HTTPdAPIBase(parent)
{
}
@@ -423,9 +423,9 @@ private:
public:
ModuleHttpServer()
: Module(VF_VENDOR, "Allows the server administrator to serve various useful resources over HTTP.")
- , APIImpl(this)
- , acleventprov(this, "http-acl")
- , reqeventprov(this, "http-request")
+ , APIImpl(weak_from_this())
+ , acleventprov(weak_from_this(), "http-acl")
+ , reqeventprov(weak_from_this(), "http-request")
{
aclevprov = &acleventprov;
reqevprov = &reqeventprov;
@@ -452,7 +452,7 @@ public:
return MOD_RES_ALLOW;
}
- void OnUnloadModule(Module* mod) override
+ void OnUnloadModule(const ModulePtr& mod) override
{
for (insp::intrusive_list<HttpServerSocket>::const_iterator i = sockets.begin(); i != sockets.end(); )
{