Skip to content

Commit

Permalink
Suppress also "Already connected" error
Browse files Browse the repository at this point in the history
Use NetworkService's connected and/or state instead to check connected
state.
  • Loading branch information
rainemak committed Jun 20, 2017
1 parent 7631bf4 commit 711111c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connd/qconnectionagent.cpp
Expand Up @@ -555,6 +555,8 @@ bool QConnectionAgent::shouldSuppressError(const QString &error, bool cellular)
return true;
if (error == QLatin1String("Operation aborted"))
return true;
if (error == QLatin1String("Already connected"))
return true;
if (error == QLatin1String("No carrier") && cellular) // Don't report cellular carrier lost.
return true;
if (error == QLatin1String("connect-failed") && cellular && netman->offlineMode()) // Suppress errors when switching to offline mode
Expand Down

0 comments on commit 711111c

Please sign in to comment.