Made a own copy of ClientArgs in Client
This commit is contained in:
parent
a12ae98e9f
commit
a471bdcea7
|
@ -55,7 +55,7 @@ Client::Client(
|
|||
const String& name, const NetworkAddress& address,
|
||||
ISocketFactory* socketFactory,
|
||||
synergy::Screen* screen,
|
||||
ClientArgs& args) :
|
||||
ClientArgs const& args) :
|
||||
m_mock(false),
|
||||
m_name(name),
|
||||
m_serverAddress(address),
|
||||
|
|
|
@ -222,5 +222,5 @@ private:
|
|||
Thread* m_writeToDropDirThread;
|
||||
TCPSocket* m_socket;
|
||||
bool m_useSecureNetwork;
|
||||
ClientArgs& m_args;
|
||||
ClientArgs m_args;
|
||||
};
|
||||
|
|
|
@ -150,7 +150,7 @@ ClientListener::handleClientConnecting(const Event&, void*)
|
|||
|
||||
// When using non SSL, server accepts clients immediately, while SSL
|
||||
// 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(),
|
||||
stream->getEventTarget()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue