Bearer/ConnMan: Fix getTechnologies() is not called

Change-Id: I4e39c971198583af815f5bcecaad4a9c52e5d2dd
Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
This commit is contained in:
Takumi ASAKI 2016-07-14 14:47:05 +09:00 committed by Takumi ASAKI
parent 23e76a12b9
commit 25e9bde2d6

View File

@ -246,6 +246,8 @@ QStringList QConnmanManagerInterface::getServices()
bool QConnmanManagerInterface::requestScan(const QString &type) bool QConnmanManagerInterface::requestScan(const QString &type)
{ {
bool scanned = false; bool scanned = false;
if (technologiesMap.isEmpty())
getTechnologies();
Q_FOREACH (QConnmanTechnologyInterface *tech, technologiesMap) { Q_FOREACH (QConnmanTechnologyInterface *tech, technologiesMap) {
if (tech->type() == type) { if (tech->type() == type) {
tech->scan(); tech->scan();