|
|
@ -218,8 +218,12 @@ public enum OnionRequestAPI {
|
|
|
|
print("[Test] [drop(_ path: Path)] newPaths: \(paths)")
|
|
|
|
print("[Test] [drop(_ path: Path)] newPaths: \(paths)")
|
|
|
|
self.paths = paths
|
|
|
|
self.paths = paths
|
|
|
|
try! Storage.writeSync { transaction in
|
|
|
|
try! Storage.writeSync { transaction in
|
|
|
|
print("[Loki] Persisting onion request paths to database.")
|
|
|
|
if !paths.isEmpty {
|
|
|
|
Storage.setOnionRequestPaths(paths, using: transaction)
|
|
|
|
print("[Loki] Persisting onion request paths to database.")
|
|
|
|
|
|
|
|
Storage.setOnionRequestPaths(paths, using: transaction)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Storage.clearOnionRequestPaths(using: transaction)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|