#5617 Make PacketStreamFilter adopt all socket types
This commit is contained in:
parent
f4f57e1f95
commit
0d84e4eed6
|
@ -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"));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue