From b84f9942a3f87f9d1e589221ed2eb3900518d8d9 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 14 Dec 2017 15:54:08 +0100 Subject: fix potential memory leak --- app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') 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 { + private static class DelayTask extends AsyncTask { private final ConnectionStatus currentLevel; private final ConnectionStatus futureLevel; -- cgit v1.2.3