#5617 Remove plugin infra from ClientListener

This commit is contained in:
Andrew Nelless 2016-09-27 12:23:09 +01:00
parent 76b2558f1a
commit 27ccddbea4
1 changed files with 1 additions and 17 deletions

View File

@ -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);
}
}