summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--synchronizer/listener.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/synchronizer/listener.cpp b/synchronizer/listener.cpp
index 60577ac..6c07809 100644
--- a/synchronizer/listener.cpp
+++ b/synchronizer/listener.cpp
@@ -117,10 +117,9 @@ void Listener::acceptConnection()
117 } 117 }
118 118
119 Log() << "Got a connection"; 119 Log() << "Got a connection";
120 Client client("Unknown Client", socket); 120 m_connections << Client("Unknown Client", socket);
121 connect(socket, &QIODevice::readyRead, 121 connect(socket, &QIODevice::readyRead,
122 this, &Listener::readFromSocket); 122 this, &Listener::onDataAvailable);
123 m_connections << client;
124 connect(socket, &QLocalSocket::disconnected, 123 connect(socket, &QLocalSocket::disconnected,
125 this, &Listener::clientDropped); 124 this, &Listener::clientDropped);
126 m_checkConnectionsTimer->stop(); 125 m_checkConnectionsTimer->stop();