diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-07-01 09:42:13 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-07-10 14:44:16 +0200 |
commit | fd85f6fc28061fd162cdc41dbe5c9c70e066c34b (patch) | |
tree | cca536bc69fef1c7b1e1d6cdefc4d56d707dc612 /tests/bttestui | |
parent | b2cebb6530fecedfa1facd8e7ff7020a4147b803 (diff) |
Remove usage of BluetoothSocket.isConnected()
It seems not all devices reliably return the correct value when calling
isConnected(). connect() succeeds but isConnected() is still false.
On the positive side it is not really needed either.
Calling connect() returns an exception if it fails and close() can be
safely called multiple times. Therefore we only have to check for ocurring
exceptions.
Furthermore isConnected() is API lvl 14 and was not guarded. Removing
the call resolves this problem too.
Task-number: QTBUG-39815
Change-Id: Idf8472c268231a2cfac0f5cd87294384ff779c3f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'tests/bttestui')
0 files changed, 0 insertions, 0 deletions