Skip to content

Commit

Permalink
Revert "[qtbase] Ignore irrelevant session state change events. Contr…
Browse files Browse the repository at this point in the history
…ibutes to JB#33794"

This reverts commit 3112a8b.
  • Loading branch information
monich committed Dec 28, 2016
1 parent c083866 commit 55da2ec
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/network/access/qnetworkaccessmanager.cpp
Expand Up @@ -1610,16 +1610,7 @@ void QNetworkAccessManagerPrivate::_q_networkSessionClosed()
void QNetworkAccessManagerPrivate::_q_networkSessionStateChanged(QNetworkSession::State state)
{
Q_Q(QNetworkAccessManager);

if (!networkSessionStrongRef) {
// The next stateChanged() may already be queued by the time we have
// received closed() signal and cleared the session reference.
lastSessionState = QNetworkSession::Invalid;
return;
}

bool reallyOnline = false;

//Do not emit the networkSessionConnected signal here, except for roaming -> connected
//transition, otherwise it is emitted twice in a row when opening a connection.
if (state == QNetworkSession::Connected && lastSessionState != QNetworkSession::Roaming)
Expand Down

0 comments on commit 55da2ec

Please sign in to comment.