fix the maximal unstable
[googlelatitude] / src / daemon.cpp
index 7e9886d..3e631c3 100644 (file)
@@ -13,6 +13,7 @@ void Daemon::set() {
     qDebug() << "Daemon: set";
     glatitude->login(setting->value("user","my_username").toString(),
                      setting->value("pass","my_password").toString());
+    glatitude->freq(setting->value("freq","120").toInt());
     glatitude->set(gps->get_lat(),
                    gps->get_lon(),
                    gps->get_acc());
@@ -24,4 +25,5 @@ void Daemon::daemon_OK() {
 
 void Daemon::daemon_ERROR() {
     qDebug() << "Daemon: no auth";
+    QCoreApplication::exit();
 }