mirror of
https://github.com/znc/znc.git
synced 2026-05-04 12:32:33 +02:00
Update to latest Csocket and use its new init interface
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1288 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
6
znc.cpp
6
znc.cpp
@@ -26,6 +26,11 @@ namespace
|
||||
};
|
||||
|
||||
CZNC::CZNC() {
|
||||
if (!InitCsocket()) {
|
||||
CUtils::PrintError("Failed to initialize Csocket!");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
#ifdef _MODULES
|
||||
m_pModules = new CGlobalModules();
|
||||
#endif
|
||||
@@ -68,6 +73,7 @@ CZNC::~CZNC() {
|
||||
delete m_pModules;
|
||||
#endif
|
||||
|
||||
ShutdownCsocket();
|
||||
DeletePidFile();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user