void QSocks5SocketEnginePrivate::_q_emitPendingReadNotification()
{
Q_Q(QSocks5SocketEngine);
readNotificationPending = false;
if (readNotificationEnabled) {
QSOCKS5_D_DEBUG << "emitting readNotification";
QPointer<QSocks5SocketEngine> qq = q;
emit q->readNotification();
if (!qq)
return;
// check if there needs to be a new zero read notification
if (data && data->controlSocket->state() == QAbstractSocket::UnconnectedState
&& data->controlSocket->error() == QAbstractSocket::RemoteHostClosedError) {
connectData->readBuffer.clear(); //程序给崩溃到这里了。。。
emitReadNotification();
}
}
}