summaryrefslogtreecommitdiff
path: root/src/se
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2013-06-18 20:38:24 -0600
committerSean Leonard <meanderingcode@aetherislands.net>2013-06-20 18:54:43 -0600
commit7e98a58eedd638113d447be9c7c2aff8ecfa444e (patch)
tree16b4cae5280b2130e3a89facf150fa8c5e17f31a /src/se
parenta56ecf1b46a158485aa89d2a8f1f5b1b0d819b39 (diff)
Remove bad,duplicate code from EIP.startEIP()
Diffstat (limited to 'src/se')
-rw-r--r--src/se/leap/leapclient/EIP.java19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/se/leap/leapclient/EIP.java b/src/se/leap/leapclient/EIP.java
index 5afffd61..3831aaf6 100644
--- a/src/se/leap/leapclient/EIP.java
+++ b/src/se/leap/leapclient/EIP.java
@@ -171,24 +171,7 @@ public final class EIP extends IntentService {
intent.putExtra(LaunchVPN.EXTRA_NAME, activeGateway.mVpnProfile.getName() );
intent.putExtra(ConfigHelper.RECEIVER_TAG, mReceiver);
startActivity(intent);
- // Let's give it 2s to get rolling... TODO there really should be a better way to do this, or it's not needed.
- // Read more code in .openvpn package
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- if (!mBound){
- mPending = ACTION_START_EIP;
- this.retreiveVpnService();
- } else {
- if (mReceiver != null) {
- Bundle resultData = new Bundle();
- resultData.putString(ConfigHelper.REQUEST_TAG, ACTION_START_EIP);
- mReceiver.send(Activity.RESULT_OK, resultData);
- }
- }
+ mPending = ACTION_START_EIP;
}
private void stopEIP() {