Skip to content

Commit

Permalink
#219 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
philips77 committed Jul 28, 2020
1 parent 92698bb commit bb0c971
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ protected BluetoothGatt connect(@NonNull final String address) {
// Connection error may occur as well.
try {
synchronized (mLock) {
while ((mConnectionState == STATE_CONNECTING || mConnectionState == STATE_CONNECTED) && mError == 0)
while ((mConnectionState == STATE_CONNECTING || mConnectionState == STATE_CONNECTED) && mError == 0 && !mAborted)
mLock.wait();
}
} catch (final InterruptedException e) {
Expand Down

0 comments on commit bb0c971

Please sign in to comment.