aboutsummaryrefslogtreecommitdiffstats
path: root/src/BluetoothManager.cpp
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2016-02-18 15:37:43 +0200
committerPetre Eftime <[email protected]>2016-03-07 11:50:01 +0200
commitdbba04ae532868c7b43aa420b0db9c475a5aaec9 (patch)
tree71352b9836dd1ff9638cb333365eacf7918609d6 /src/BluetoothManager.cpp
parent18917cfdfdd9cd88d657b0183867abbb7cc663ac (diff)
Remove event from event_list before find function completes
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'src/BluetoothManager.cpp')
-rw-r--r--src/BluetoothManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/BluetoothManager.cpp b/src/BluetoothManager.cpp
index 42ff3429..4b318e3e 100644
--- a/src/BluetoothManager.cpp
+++ b/src/BluetoothManager.cpp
@@ -179,6 +179,7 @@ std::unique_ptr<BluetoothObject> BluetoothManager::find(BluetoothType type,
object = std::unique_ptr<BluetoothObject>(event->get_result());
}
+ event->cancel();
return object;
}