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,
|
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),
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue