Permalink
Browse files

QxtAbstractHttpConnector: don't add null devices to buffer list

  • Loading branch information...
1 parent 39026b4 commit 15e4c0744f13dd925f257873a808f3b052669f2a ahigerd committed Oct 25, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/web/qxtabstracthttpconnector.cpp
@@ -137,6 +137,7 @@ QIODevice* QxtAbstractHttpConnector::getRequestConnection(quint32 requestID)
*/
void QxtAbstractHttpConnector::addConnection(QIODevice* device)
{
+ if(!device) return;
QWriteLocker locker(&qxt_d().bufferLock);
qxt_d().buffers[device] = QByteArray();
QObject::connect(device, SIGNAL(readyRead()), this, SLOT(incomingData()));

0 comments on commit 15e4c07

Please sign in to comment.