Commit bfd36f59 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Stop the VPN service when starting the rule import

parent a9e8eec6
...@@ -79,6 +79,9 @@ public class RuleImportService extends Service { ...@@ -79,6 +79,9 @@ public class RuleImportService extends Service {
if(first)new Thread(){ if(first)new Thread(){
@Override @Override
public void run() { public void run() {
if(DNSVpnService.isServiceRunning()){
startService(DNSVpnService.getDestroyIntent(RuleImportService.this));
}
try { try {
startImport(); startImport();
} catch (IOException e) { } catch (IOException e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment