Skip to content
This repository has been archived by the owner on Dec 29, 2019. It is now read-only.

Commit

Permalink
Fixed bug from last commit.
Browse files Browse the repository at this point in the history
Fixed another bug with disconnecting client side.
  • Loading branch information
neatorobito committed Jun 26, 2015
1 parent c00e2fd commit a0f6874
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/peak/salut/Salut.java
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,11 @@ public void unregisterClient(@Nullable SalutCallback onSuccess, @Nullable SalutC
{
onSuccess.call();
}
thisDevice.isRegistered = false;
registeredHost = null;
cleanUpDataConnection(false);
cleanUpDeviceConnection(false);
disconnectFromDevice();
}
else
{
Expand Down Expand Up @@ -721,8 +726,8 @@ public void run() {
connectingIsCanceled = false;
}
else {
stopServiceDiscovery();
if (foundDevices.isEmpty()) {
stopServiceDiscovery();
cleanUpFunction.call();
} else {
devicesFound.call();
Expand Down

0 comments on commit a0f6874

Please sign in to comment.