Skip to content
Snippets Groups Projects
Commit b84f9942 authored by cyberta's avatar cyberta
Browse files

fix potential memory leak

parent b60de979
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ public class EipStatus extends Observable implements VpnStatus.StateListener { ...@@ -47,7 +47,7 @@ public class EipStatus extends Observable implements VpnStatus.StateListener {
* openvpn. * openvpn.
*/ */
private ConnectionStatus vpn_level = ConnectionStatus.LEVEL_NOTCONNECTED; private ConnectionStatus vpn_level = ConnectionStatus.LEVEL_NOTCONNECTED;
private EipLevel current_eip_level = EipLevel.DISCONNECTED; private static EipLevel current_eip_level = EipLevel.DISCONNECTED;
int last_error_line = 0; int last_error_line = 0;
private String state, log_message; private String state, log_message;
...@@ -126,7 +126,7 @@ public class EipStatus extends Observable implements VpnStatus.StateListener { ...@@ -126,7 +126,7 @@ public class EipStatus extends Observable implements VpnStatus.StateListener {
new DelayTask(current_status.getLevel(), futureLevel).execute(); new DelayTask(current_status.getLevel(), futureLevel).execute();
} }
private class DelayTask extends AsyncTask<Void, Void, Void> { private static class DelayTask extends AsyncTask<Void, Void, Void> {
private final ConnectionStatus currentLevel; private final ConnectionStatus currentLevel;
private final ConnectionStatus futureLevel; private final ConnectionStatus futureLevel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment