summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-11-23 12:50:02 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-11-23 12:50:02 +0100
commit820f229a9efe2678d1e85578aa086a1efdd73a30 (patch)
tree8ad5d50be33a1f9c52707b0999ed5d7cbf03f1f3 /src/modules.cpp
parenta39bd397cd0052dd8e23ba5c4c5dfc9b3a11a70c (diff)
Add ServiceProvider::RegisterService(), call it from ModuleManager::AddService()
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 0223d12f1..3ff8aad14 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -588,7 +588,7 @@ void ModuleManager::AddService(ServiceProvider& item)
return;
}
default:
- throw ModuleException("Cannot add unknown service type");
+ item.RegisterService();
}
}