Skip to content

Commit

Permalink
attempt to fix issue jonasoreland#419 - crash with Zephyr HxM
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasoreland committed Aug 3, 2016
1 parent 0f789d7 commit 5f3bb4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hrdevice/src/org/runnerup/hr/RetryingHRProviderProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,16 @@ public void onDisconnectResult(boolean disconnectOK) {

state = State.OPENED;
requestedState = State.OPENED;
client.onDisconnectResult(disconnectOK);
if (client != null)
client.onDisconnectResult(disconnectOK);
}

@Override
public void onCloseResult(boolean closeOK) {
state = State.CLOSED;
requestedState = State.CLOSED;
client.onConnectResult(closeOK);
if (client != null)
client.onConnectResult(closeOK);
}

@Override
Expand Down

0 comments on commit 5f3bb4c

Please sign in to comment.