瀏覽代碼

removed unnecessary member

ivowolf 14 年之前
父節點
當前提交
00e76415d9

+ 2 - 1
Plugins/org.commontk.dah.core/ctkSoapConnectionRunnable.cpp

@@ -36,6 +36,7 @@ ctkSoapConnectionRunnable::~ctkSoapConnectionRunnable()
 
 void ctkSoapConnectionRunnable::run()
 {
+  QTcpSocket tcpSocket;
   if (!tcpSocket.setSocketDescriptor(socketDescriptor))
   {
     // error handling
@@ -100,7 +101,7 @@ void ctkSoapConnectionRunnable::readClient(QTcpSocket& socket)
           if (body.size()<contentLength)
           {
             qDebug() << " Message body too small. Trying to read more.";
-            tcpSocket.waitForReadyRead(-1);
+            socket.waitForReadyRead(-1);
           }
         }
         if(body.trimmed().isEmpty()==false)

+ 0 - 1
Plugins/org.commontk.dah.core/ctkSoapConnectionRunnable_p.h

@@ -51,7 +51,6 @@ private:
 
   int socketDescriptor;
 
-  QTcpSocket tcpSocket;
 };
 
 #endif // CTKSOAPCONNECTIONRUNNABLE_P_H