diff --git a/src/lib/server/ClientListener.cpp b/src/lib/server/ClientListener.cpp index 78a62901..a34ccf68 100644 --- a/src/lib/server/ClientListener.cpp +++ b/src/lib/server/ClientListener.cpp @@ -164,7 +164,8 @@ ClientListener::handleClientAccepted(const Event&, void* vsocket) IDataSocket* socket = reinterpret_cast(vsocket); // filter socket messages, including a packetizing filter - synergy::IStream* stream = new PacketStreamFilter(m_events, socket); + bool adopt = !m_useSecureNetwork; + synergy::IStream* stream = new PacketStreamFilter(m_events, socket, adopt); assert(m_server != NULL); // create proxy for unknown client