mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 05:13:36 +08:00
Made a own copy of ClientArgs in Client
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user