Skip to content

Commit

Permalink
#5617 Remove plugin infra from ClientListener
Browse files Browse the repository at this point in the history
  • Loading branch information
SymlessRemoved authored and Andrew Nelless committed Sep 29, 2016
1 parent d9fd23b commit 541ff6f
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/lib/server/ClientListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

0 comments on commit 541ff6f

Please sign in to comment.