equal
deleted
inserted
replaced
126 { |
126 { |
127 Q_D(QDeclarativeDebugServer); |
127 Q_D(QDeclarativeDebugServer); |
128 |
128 |
129 if (d->connection) { |
129 if (d->connection) { |
130 qWarning("QDeclarativeDebugServer error: another client is already connected"); |
130 qWarning("QDeclarativeDebugServer error: another client is already connected"); |
|
131 QTcpSocket *faultyConnection = d->tcpServer->nextPendingConnection(); |
|
132 delete faultyConnection; |
131 return; |
133 return; |
132 } |
134 } |
133 |
135 |
134 d->connection = d->tcpServer->nextPendingConnection(); |
136 d->connection = d->tcpServer->nextPendingConnection(); |
135 d->connection->setParent(this); |
137 d->connection->setParent(this); |