summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 9156d3444..292fbd488 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -256,16 +256,17 @@ class BanCacheManager;
class CoreExport ConfigReaderThread : public Thread
{
ServerConfig* Config;
- bool done;
+ volatile bool done;
public:
- std::string TheUserUID;
+ const std::string TheUserUID;
ConfigReaderThread(const std::string &useruid)
- : Thread(), done(false), TheUserUID(useruid)
+ : Config(new ServerConfig), done(false), TheUserUID(useruid)
{
}
virtual ~ConfigReaderThread()
{
+ delete Config;
}
void Run();