Skip to content

Commit bb0c971

Browse files
committed
1 parent 92698bb commit bb0c971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dfu/src/main/java/no/nordicsemi/android/dfu/DfuBaseService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ protected BluetoothGatt connect(@NonNull final String address) {
15431543
// Connection error may occur as well.
15441544
try {
15451545
synchronized (mLock) {
1546-
while ((mConnectionState == STATE_CONNECTING || mConnectionState == STATE_CONNECTED) && mError == 0)
1546+
while ((mConnectionState == STATE_CONNECTING || mConnectionState == STATE_CONNECTED) && mError == 0 && !mAborted)
15471547
mLock.wait();
15481548
}
15491549
} catch (final InterruptedException e) {

0 commit comments

Comments
 (0)