summaryrefslogtreecommitdiff
authorkejun.gao <kejun.gao@amlogic.com>2012-07-03 06:18:21 (GMT)
committer fred.chen <fred.chen@amlogic.com>2012-07-17 12:34:33 (GMT)
commitf769b9a00e486a5128058cea2ac04eabf2638f64 (patch)
treec9eff5da23792a3ee78058ede7743e053fcd9046
parentfe87ed14a35b4ace3a06b84335407285330854ac (diff)
downloadPPPoE-f769b9a00e486a5128058cea2ac04eabf2638f64.zip
PPPoE-f769b9a00e486a5128058cea2ac04eabf2638f64.tar.gz
PPPoE-f769b9a00e486a5128058cea2ac04eabf2638f64.tar.bz2
Fix bug: no clear pppoe_running_flag when connection fails
Diffstat
-rwxr-xr-xsrc/com/amlogic/PPPoE/PppoeConfigDialog.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/amlogic/PPPoE/PppoeConfigDialog.java b/src/com/amlogic/PPPoE/PppoeConfigDialog.java
index 4e7d5ee..50d5c79 100755
--- a/src/com/amlogic/PPPoE/PppoeConfigDialog.java
+++ b/src/com/amlogic/PPPoE/PppoeConfigDialog.java
@@ -559,10 +559,10 @@ public class PppoeConfigDialog extends AlertDialog implements DialogInterface.On
if (pppoe_state == PPPOE_STATE_DISCONNECTING) {
waitDialog.cancel();
disconnect_timer.cancel();
+ clear_pppoe_running_flag();
}
pppoe_state = PPPOE_STATE_DISCONNECTED;
showAlertDialog(context.getResources().getString(R.string.pppoe_disconnect_ok));
- clear_pppoe_running_flag();
}
if(event == PppoeStateTracker.EVENT_CONNECT_FAILED)
@@ -573,6 +573,7 @@ public class PppoeConfigDialog extends AlertDialog implements DialogInterface.On
if (pppoe_state == PPPOE_STATE_CONNECTING) {
waitDialog.cancel();
connect_timer.cancel();
+ clear_pppoe_running_flag();
}
pppoe_state = PPPOE_STATE_CONNECT_FAILED;
@@ -584,7 +585,6 @@ public class PppoeConfigDialog extends AlertDialog implements DialogInterface.On
showAlertDialog(context.getResources().getString(R.string.pppoe_connect_failed) + "\n" + reason);
}
-
}
}
}