Skip to content

Commit

Permalink
Merge pull request #81 from SUPLA/develop
Browse files Browse the repository at this point in the history
v2.3.13
  • Loading branch information
przemyslawzygmunt authored Jul 4, 2019
2 parents 47e0d93 + 2e71e96 commit 8ca6f5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "org.supla.android"
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
versionCode 66
versionName "2.3.12"
versionCode 67
versionName "2.3.13"

sourceSets.main {
jniLibs.srcDir 'src/main/libs'
Expand Down
10 changes: 8 additions & 2 deletions app/src/main/java/org/supla/android/lib/SuplaClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,11 @@ public boolean Registered() {

boolean result;

synchronized (sc_lck) {
LockClientPtr();
try {
result = _supla_client_ptr != 0 && scRegistered(_supla_client_ptr);
} finally {
UnlockClientPtr();
}

return result;
Expand Down Expand Up @@ -353,8 +356,11 @@ public int GetProtoVersion() {

int result;

synchronized (sc_lck) {
LockClientPtr();
try {
result = _supla_client_ptr != 0 ? scGetProtoVersion(_supla_client_ptr) : 0;
} finally {
UnlockClientPtr();
}

return result;
Expand Down

0 comments on commit 8ca6f5d

Please sign in to comment.