Skip to content

Commit

Permalink
[connectionagent] dont try to connect if already connected.
Browse files Browse the repository at this point in the history
Will result in 'Already connected' error
  • Loading branch information
Lorn Potter committed Apr 10, 2014
1 parent 6787bd7 commit 0220f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connd/qconnectionagent.cpp
Expand Up @@ -552,7 +552,7 @@ void QConnectionAgent::serviceAutoconnectChanged(bool on)
qDebug() << service->path() << "AutoConnect is" << on;
if (!on) {
servicesMap.value(service->path())->requestDisconnect();
} else {
} else if (!servicesMap.value(service->path())->connected()){
servicesMap.value(service->path())->requestConnect();
}
}
Expand Down

0 comments on commit 0220f41

Please sign in to comment.