diff --git a/aFWall/src/main/java/dev/ukanth/ufirewall/Api.java b/aFWall/src/main/java/dev/ukanth/ufirewall/Api.java index c874a6934..87b86ac36 100644 --- a/aFWall/src/main/java/dev/ukanth/ufirewall/Api.java +++ b/aFWall/src/main/java/dev/ukanth/ufirewall/Api.java @@ -897,11 +897,13 @@ public static void applySavedIptablesRules(Context ctx, boolean showErrors, Root } t1.start(); - t2.start(); + if (G.enableIPv6()) { + t2.start(); + } try { t1.join(); - if (t2 != null) { + if (G.enableIPv6() && t2 != null) { t2.join(); } } catch (InterruptedException e) {