mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-02 21:45:03 +08:00
#5617 Remove plugin infra from ServerApp
This commit is contained in:
@@ -707,11 +707,6 @@ ServerApp::mainLoop()
|
||||
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
|
||||
appUtil().startNode();
|
||||
|
||||
@@ -721,9 +716,6 @@ ServerApp::mainLoop()
|
||||
initIpcClient();
|
||||
}
|
||||
|
||||
// init event for all available plugins.
|
||||
ARCH->plugin().initEvent(m_serverScreen->getEventTarget(), m_events);
|
||||
|
||||
// handle hangup signal by reloading the server's configuration
|
||||
ARCH->setSignalHandler(Arch::kHANGUP, &reloadSignalHandler, NULL);
|
||||
m_events->adoptHandler(m_events->forServerApp().reloadConfig(),
|
||||
@@ -780,9 +772,6 @@ ServerApp::mainLoop()
|
||||
cleanupIpcClient();
|
||||
}
|
||||
|
||||
// unload all plugins.
|
||||
ARCH->plugin().unload();
|
||||
|
||||
return kExitSuccess;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user