Skip to content

Commit

Permalink
Fixed some indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jtreanor committed Jun 5, 2015
1 parent b495b4b commit 0487b48
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/android/IntercomGCMManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


public class IntercomGCMManager {
private static final String PROPERTY_REG_ID = "registration_id";
private static final String PROPERTY_REG_ID = "registration_id";
private static final String PROPERTY_APP_VERSION = "app_version";

private static long retryTime = 0;
Expand Down Expand Up @@ -107,11 +107,11 @@ protected Void doInBackground(Void... params) {
} catch (IOException ex) {
Log.d("GCM_ISSUE", "Error :" + ex.getMessage());

retryCount++;
retryCount++;

long minBackoffSeconds = (long)Math.pow(2.0, (double)retryCount);
long backOffJitter = (long)(Math.random() * (minBackoffSeconds + 1));
retryTime = minBackoffSeconds + backOffJitter;
long minBackoffSeconds = (long)Math.pow(2.0, (double)retryCount);
long backOffJitter = (long)(Math.random() * (minBackoffSeconds + 1));
retryTime = minBackoffSeconds + backOffJitter;

//retry the registration after delay
gcmHandler.postDelayed(new Runnable() {
Expand Down

0 comments on commit 0487b48

Please sign in to comment.