#5617 Remove plugin infra from ServerApp
This commit is contained in:
parent
f7e588dfff
commit
85227f41a1
|
@ -707,11 +707,6 @@ ServerApp::mainLoop()
|
||||||
return kExitFailed;
|
return kExitFailed;
|
||||||
}
|
}
|
||||||
|
|
||||||
// load all available plugins.
|
|
||||||
ARCH->plugin().load();
|
|
||||||
// pass log and arch into plugins.
|
|
||||||
ARCH->plugin().init(Log::getInstance(), Arch::getInstance());
|
|
||||||
|
|
||||||
// start server, etc
|
// start server, etc
|
||||||
appUtil().startNode();
|
appUtil().startNode();
|
||||||
|
|
||||||
|
@ -721,9 +716,6 @@ ServerApp::mainLoop()
|
||||||
initIpcClient();
|
initIpcClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
// init event for all available plugins.
|
|
||||||
ARCH->plugin().initEvent(m_serverScreen->getEventTarget(), m_events);
|
|
||||||
|
|
||||||
// handle hangup signal by reloading the server's configuration
|
// handle hangup signal by reloading the server's configuration
|
||||||
ARCH->setSignalHandler(Arch::kHANGUP, &reloadSignalHandler, NULL);
|
ARCH->setSignalHandler(Arch::kHANGUP, &reloadSignalHandler, NULL);
|
||||||
m_events->adoptHandler(m_events->forServerApp().reloadConfig(),
|
m_events->adoptHandler(m_events->forServerApp().reloadConfig(),
|
||||||
|
@ -780,9 +772,6 @@ ServerApp::mainLoop()
|
||||||
cleanupIpcClient();
|
cleanupIpcClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
// unload all plugins.
|
|
||||||
ARCH->plugin().unload();
|
|
||||||
|
|
||||||
return kExitSuccess;
|
return kExitSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue