diff options
author | cyBerta <cyberta@riseup.net> | 2017-12-14 15:54:08 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2017-12-14 15:54:08 +0100 |
commit | b84f9942a3f87f9d1e589221ed2eb3900518d8d9 (patch) | |
tree | 24c8e3e27d34c2ae6317a1061878cc12d2b253bf /app/src/main/java | |
parent | b60de97967b7a252762640a8917c24e4211df7c1 (diff) |
fix potential memory leak
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java b/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java index b1d7c994..ddf152d2 100644 --- a/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java +++ b/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java @@ -47,7 +47,7 @@ public class EipStatus extends Observable implements VpnStatus.StateListener { * openvpn. */ 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; private String state, log_message; @@ -126,7 +126,7 @@ public class EipStatus extends Observable implements VpnStatus.StateListener { 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 futureLevel; |