Usage data latency

This commit is contained in:
M66B 2016-07-09 08:59:36 +02:00
parent bf4b74a06f
commit 0a792a64d9
1 changed files with 7 additions and 0 deletions

View File

@ -97,12 +97,19 @@ public class ServiceJob extends JobService {
Log.i(TAG, "Response=" + response);
jobFinished(params[0], false);
} catch (Throwable ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
jobFinished(params[0], true);
} finally {
if (urlConnection != null)
urlConnection.disconnect();
try {
Thread.sleep(1000);
} catch (InterruptedException ignored) {
}
}
return null;