Skip to content
Snippets Groups Projects
Commit 073f42ad authored by Volker Richert's avatar Volker Richert
Browse files

fixing

parent 9476c086
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ public class NightscoutUploadIntentService extends IntentService {
private static final SimpleDateFormat ISO8601_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.getDefault());
private static final int SOCKET_TIMEOUT = 60 * 1000;
private static final int CONNECTION_TIMEOUT = 30 * 1000;
Context mContext;
private Context mContext;
private Realm mRealm;
public NightscoutUploadIntentService() {
......@@ -62,6 +62,7 @@ public class NightscoutUploadIntentService extends IntentService {
Log.i(TAG, "onCreate called");
mContext = this.getBaseContext();
}
@Override
......@@ -92,6 +93,7 @@ public class NightscoutUploadIntentService extends IntentService {
} else {
Log.i(TAG, "No records has to be uploaded");
}
mRealm.close();
NightscoutUploadReceiver.completeWakefulIntent(intent);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment