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); Log.i(TAG, "Response=" + response);
jobFinished(params[0], false); jobFinished(params[0], false);
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex)); Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
jobFinished(params[0], true); jobFinished(params[0], true);
} finally { } finally {
if (urlConnection != null) if (urlConnection != null)
urlConnection.disconnect(); urlConnection.disconnect();
try {
Thread.sleep(1000);
} catch (InterruptedException ignored) {
}
} }
return null; return null;