Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Alonso committed Jun 5, 2017
1 parent 16a67e9 commit 3662663
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void run() {
mIsForeground = false;
try {
double sessionLength = System.currentTimeMillis() - sStartSessionTime;
if (sessionLength >= MPConfig.getInstance(activity.getApplicationContext()).getMinimumSessionDuration() && sessionLength < MPConfig.getInstance(activity.getApplicationContext()).getSessionTimeoutDuration()) {
if (sessionLength >= mConfig.getMinimumSessionDuration() && sessionLength < mConfig.getSessionTimeoutDuration()) {
DecimalFormat df = new DecimalFormat("#.0");
String sessionLengthString = df.format((System.currentTimeMillis() - sStartSessionTime) / 1000);
JSONObject sessionProperties = new JSONObject();
Expand Down

0 comments on commit 3662663

Please sign in to comment.