mirror of https://github.com/M66B/NetGuard.git
Usage data latency
This commit is contained in:
parent
bf4b74a06f
commit
0a792a64d9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue