Skip to content

Commit

Permalink
[connectionagent] remove handover settle timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorn Potter committed Oct 3, 2013
1 parent 3b5cb45 commit 915cdf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 2 additions & 12 deletions connd/qconnectionmanager.cpp
Expand Up @@ -42,9 +42,6 @@

#include <QObject>
#include <QSettings>
#include <QTimer>



QConnectionManager* QConnectionManager::self = NULL;

Expand Down Expand Up @@ -385,7 +382,6 @@ void QConnectionManager::connectToNetworkService(const QString &servicePath)
QOfonoConnectionContext oContext;
oContext.setContextPath(contextPath);
oContext.setActive(true);
QTimer::singleShot(10 * 1000,this,SLOT(timeout()));
return;
}
}
Expand Down Expand Up @@ -535,6 +531,8 @@ void QConnectionManager::connectionHandover(const QString &oldService, const QSt
void QConnectionManager::networkStateChanged(const QString &state)
{
qDebug() << Q_FUNC_INFO << state;
if (state == "online")
handoverInProgress = false;

QSettings confFile;
confFile.beginGroup("Connectionagent");
Expand Down Expand Up @@ -679,7 +677,6 @@ void QConnectionManager::requestDisconnect(const QString &servicePath)
"net.connman.Service", QDBusConnection::systemBus());
QDBusMessage reply = service.call(QDBus::NoBlock, QStringLiteral("Disconnect"));
manuallyDisconnectedService.clear();
QTimer::singleShot(10 * 1000,this,SLOT(timeout()));
}
}

Expand All @@ -695,12 +692,5 @@ void QConnectionManager::requestConnect(const QString &servicePath)
manualConnected = false;
autoConnectService = servicePath;
manuallyConnectedService.clear();
QTimer::singleShot(10 * 1000,this,SLOT(timeout()));
}
}

void QConnectionManager::timeout()
{
qDebug() << Q_FUNC_INFO << "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<";
handoverInProgress = false;
}
2 changes: 0 additions & 2 deletions connd/qconnectionmanager.h
Expand Up @@ -129,8 +129,6 @@ private slots:
void onServiceConnectionStarted();

void onServiceDisconnectionStarted();

void timeout();
};

#endif // QCONNECTIONMANAGER_H

0 comments on commit 915cdf0

Please sign in to comment.