Skip to content

Commit

Permalink
Release 1.6.29
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhzh committed Nov 25, 2016
1 parent 55b8c20 commit 09652e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/SensorsAnalyticsSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.6.28"
version = "1.6.29"

android {
compileSdkVersion 21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@ private static void mergeJSONObject(final JSONObject source, JSONObject dest)
static final int VTRACK_SUPPORTED_MIN_API = 16;

// SDK版本
static final String VERSION = "1.6.28";
static final String VERSION = "1.6.29";

static Boolean ENABLE_LOG = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,14 @@ private void initializeBindings() {
applyVariantsAndEventBindings();
}

private int mHasRetryCount = 0;
private void retrySendDeviceInfo(final JSONObject message) {
final Message msg = mMessageThreadHandler.obtainMessage(ViewCrawler.MESSAGE_SEND_DEVICE_INFO);
msg.obj = message;
mMessageThreadHandler.sendMessageDelayed(msg, 1000);
if (mHasRetryCount < 3) {
mHasRetryCount++;
final Message msg = mMessageThreadHandler.obtainMessage(ViewCrawler.MESSAGE_SEND_DEVICE_INFO);
msg.obj = message;
mMessageThreadHandler.sendMessageDelayed(msg, 3000);
}
}

/**
Expand Down Expand Up @@ -908,7 +912,6 @@ public void onWebSocketClose(int code) {
}

private static boolean mIsRetryConnect = true;
;
private static int mCurrentRetryTimes = 0;
private static final int CONNECT_RETRY_TIMES = 40;
private static final long RETRY_TIME_INTERVAL = 30 * 1000;
Expand Down

0 comments on commit 09652e5

Please sign in to comment.