diff options
author | Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> | 2016-08-02 10:36:56 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> | 2016-08-26 13:41:27 +0000 |
commit | 21e7cb1bafdfc06c263e10067d02f9b103ff660f (patch) | |
tree | f6f5df73ef23e5d1cebcb9347dbd40be91a673cc /dist | |
parent | 95513185fd90cb9372a8cb8b541de7a3f41b12d4 (diff) |
QBluetoothSocket::connectToService - check a socket type first
Attempt to connect to a service using a socket with UnknownProtocol
socket type will fail, but can result in an incorrect UnknownSocketError
reported and also can start a device discovery (then finally failing to
connect after all). Check this condition early before trying to actually
connect/do device discovery and report error properly
as UnsupportedProtocolError.
Task-number: QTBUG-55073
Change-Id: Ib39e1ca7ad401e07d6387201a4664a1185d38d39
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions