Skip to content

Commit

Permalink
#5617 Make PacketStreamFilter adopt all socket types
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 67bbd4c commit ef812fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/lib/client/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
3 changes: 1 addition & 2 deletions src/lib/server/ClientListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef812fa

Please sign in to comment.