summaryrefslogtreecommitdiff
path: root/libsowatch/allwatchscanner.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:57:34 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:57:34 +0200
commit9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada (patch)
treee28d75366e004e3865deefb5bcaa2dc8e0d3a773 /libsowatch/allwatchscanner.cpp
parent80c58c124caf17f670d8efc120f5ae4bfd9aa09f (diff)
downloadsowatch-9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada.tar.gz
sowatch-9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada.zip
perform only one bluetooth discovery for all watches
Diffstat (limited to 'libsowatch/allwatchscanner.cpp')
-rw-r--r--libsowatch/allwatchscanner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsowatch/allwatchscanner.cpp b/libsowatch/allwatchscanner.cpp
index 97f8454..b01ad05 100644
--- a/libsowatch/allwatchscanner.cpp
+++ b/libsowatch/allwatchscanner.cpp
@@ -23,6 +23,7 @@ AllWatchScanner::AllWatchScanner(QObject *parent) :
void AllWatchScanner::start()
{
+ _finishedCount = 0;
if (_scanners.empty()) {
emit finished();
} else {
@@ -40,5 +41,6 @@ void AllWatchScanner::handleFinished()
if (_finishedCount >= _scanners.length()) {
qDebug() << "all finished";
emit finished();
+ _finishedCount = 0;
}
}