Skip to content

Commit 92905fa

Browse files
committed
Try to let UsbTransferProvider unbind before setting context to null
1 parent 97b138e commit 92905fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/sdl_android/src/main/java/com/smartdevicelink/transport/UsbTransferProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ public void checkIsConnected() {
179179
}
180180

181181
public void cancel() {
182-
context = null;
183182
if (isBound) {
184183
unBindFromService();
185184
}
185+
context = null;
186186
}
187187

188188
private boolean bindToService() {

0 commit comments

Comments
 (0)