summaryrefslogtreecommitdiff
path: root/src/se/leap
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2014-03-12 13:27:16 -0700
committerSean Leonard <meanderingcode@aetherislands.net>2014-03-12 13:27:16 -0700
commitc57c4d06541616e5843c0df738a95e8f16ec5693 (patch)
treea050e2b5f81fb3dd37476da1059a3372b982b31d /src/se/leap
parent6a02a96946393956031dc2d0223fe8c0ebe7db37 (diff)
parent87826ce5c276489d74b37618b9d534b32e446eca (diff)
Merge branch 'bug/dying-client-during-configuration-5237' into develop
Diffstat (limited to 'src/se/leap')
-rw-r--r--src/se/leap/bitmaskclient/EIP.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/se/leap/bitmaskclient/EIP.java b/src/se/leap/bitmaskclient/EIP.java
index 169178d1..b3b2c95d 100644
--- a/src/se/leap/bitmaskclient/EIP.java
+++ b/src/se/leap/bitmaskclient/EIP.java
@@ -280,9 +280,9 @@ public final class EIP extends IntentService {
if(parsedEipSerial == 0) {
// Delete all vpn profiles
ProfileManager vpl = ProfileManager.getInstance(context);
- Collection<VpnProfile> profiles = vpl.getProfiles();
- for (VpnProfile profile : profiles){
- vpl.removeProfile(context, profile);
+ VpnProfile[] profiles = (VpnProfile[]) vpl.getProfiles().toArray(new VpnProfile[vpl.getProfiles().size()]);
+ for (int current_profile = 0; current_profile < profiles.length; current_profile++){
+ vpl.removeProfile(context, profiles[current_profile]);
}
}
if (eipDefinition.optInt("serial") > parsedEipSerial)