Skip to content

Commit

Permalink
QxtAbstractHttpConnector: don't add null devices to buffer list
Browse files Browse the repository at this point in the history
  • Loading branch information
ahigerd committed Oct 25, 2010
1 parent 39026b4 commit 15e4c07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/web/qxtabstracthttpconnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 15e4c07

Please sign in to comment.