Made a own copy of ClientArgs in Client

This commit is contained in:
XinyuHou 2016-09-01 14:07:19 +01:00 committed by Andrew Nelless
parent a12ae98e9f
commit a471bdcea7
3 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ Client::Client(
const String& name, const NetworkAddress& address, const String& name, const NetworkAddress& address,
ISocketFactory* socketFactory, ISocketFactory* socketFactory,
synergy::Screen* screen, synergy::Screen* screen,
ClientArgs& args) : ClientArgs const& args) :
m_mock(false), m_mock(false),
m_name(name), m_name(name),
m_serverAddress(address), m_serverAddress(address),

View File

@ -222,5 +222,5 @@ private:
Thread* m_writeToDropDirThread; Thread* m_writeToDropDirThread;
TCPSocket* m_socket; TCPSocket* m_socket;
bool m_useSecureNetwork; bool m_useSecureNetwork;
ClientArgs& m_args; ClientArgs m_args;
}; };

View File

@ -150,7 +150,7 @@ ClientListener::handleClientConnecting(const Event&, void*)
// When using non SSL, server accepts clients immediately, while SSL // When using non SSL, server accepts clients immediately, while SSL
// has to call secure accept which may require retry // has to call secure accept which may require retry
if (!m_args.m_enableCrypto) { if (!m_useSecureNetwork) {
m_events->addEvent(Event(m_events->forClientListener().accepted(), m_events->addEvent(Event(m_events->forClientListener().accepted(),
stream->getEventTarget())); stream->getEventTarget()));
} }