QTcpServer already has a list of pending connections and emits newConnection…

Authored by eduisters on Nov 19 2018, 11:08 AM.

Description

QTcpServer already has a list of pending connections and emits newConnection after calling incomingConnection

Summary:
No need to emit newConnection in Server::incomingConnection because QTcpServer will emit it after incomingConnection returns
QTcpServer also already has a list of pending connections so use that

Test Plan: Send a file from desktop to android and observe that newConnection is only called once

Reviewers: KDE Connect, albertvaka

Reviewed By: KDE Connect, albertvaka

Subscribers: kdeconnect

Tags: KDE Connect

Differential Revision: https://phabricator.kde.org/D17009