mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 14:41:57 +08:00
#5617 Remove plugin infra from ClientListener
This commit is contained in:
@@ -46,14 +46,6 @@ ClientListener::ClientListener(const NetworkAddress& address,
|
||||
assert(m_socketFactory != NULL);
|
||||
|
||||
try {
|
||||
// create listen socket
|
||||
if (enableCrypto) {
|
||||
m_useSecureNetwork = ARCH->plugin().exists(s_pluginNames[kSecureSocket]);
|
||||
if (m_useSecureNetwork == false) {
|
||||
LOG((CLOG_NOTE "crypto disabled because of ns plugin not available"));
|
||||
}
|
||||
}
|
||||
|
||||
m_listen = m_socketFactory->createListen(m_useSecureNetwork);
|
||||
|
||||
// setup event handler
|
||||
@@ -250,13 +242,5 @@ ClientListener::handleClientDisconnected(const Event&, void* vclient)
|
||||
void
|
||||
ClientListener::cleanupListenSocket()
|
||||
{
|
||||
if (!m_useSecureNetwork) {
|
||||
delete m_listen;
|
||||
}
|
||||
else {
|
||||
ARCH->plugin().invoke(
|
||||
s_pluginNames[kSecureSocket],
|
||||
"deleteListenSocket",
|
||||
NULL);
|
||||
}
|
||||
delete m_listen;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user