You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tordnscrypt/src/main/java/pan/alexander/tordnscrypt/settings/dnscrypt_rules/remote/DownloadRemoteRulesManager.kt
+1-3
Original file line number
Diff line number
Diff line change
@@ -69,14 +69,12 @@ class DownloadRemoteRulesManager @Inject constructor(
69
69
if (oldFile.isFile) {
70
70
oldFile.delete()
71
71
}
72
-
outputFile =File(path).apply {
73
-
createNewFile()
74
-
}
75
72
do {
76
73
attempts++
77
74
try {
78
75
outputFile = tryDownload(ruleName, url, path)
79
76
} catch (e:IOException) {
77
+
outputFile =null
80
78
error = e.message ?:""
81
79
logw(
82
80
"DownloadRulesManager failed to download file $url, attempt $attempts",
Copy file name to clipboardExpand all lines: tordnscrypt/src/main/java/pan/alexander/tordnscrypt/settings/dnscrypt_rules/remote/UpdateRemoteDnsRulesWorker.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -89,9 +89,9 @@ class UpdateRemoteDnsRulesWorker(private val appContext: Context, workerParams:
Copy file name to clipboardExpand all lines: tordnscrypt/src/main/java/pan/alexander/tordnscrypt/settings/dnscrypt_rules/remote/UpdateRemoteRulesWorkManager.kt
-1
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,6 @@ class UpdateRemoteRulesWorkManager @Inject constructor(
0 commit comments