#5617 Make PacketStreamFilter adopt all socket types

This commit is contained in:
Andrew Nelless 2016-09-27 17:02:44 +01:00
parent f4f57e1f95
commit 0d84e4eed6
2 changed files with 2 additions and 4 deletions

View File

@ -152,8 +152,7 @@ Client::connect()
// filter socket messages, including a packetizing filter
m_stream = socket;
bool adopt = !m_useSecureNetwork;
m_stream = new PacketStreamFilter(m_events, m_stream, adopt);
m_stream = new PacketStreamFilter(m_events, m_stream, true);
// connect
LOG((CLOG_DEBUG1 "connecting to server"));

View File

@ -155,8 +155,7 @@ ClientListener::handleClientAccepted(const Event&, void* vsocket)
IDataSocket* socket = static_cast<IDataSocket*>(vsocket);
// filter socket messages, including a packetizing filter
bool adopt = !m_useSecureNetwork;
synergy::IStream* stream = new PacketStreamFilter(m_events, socket, adopt);
synergy::IStream* stream = new PacketStreamFilter(m_events, socket, true);
assert(m_server != NULL);
// create proxy for unknown client