src/declarative/debugger/qdeclarativedebugservice.cpp
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   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);