mirror of https://github.com/M66B/NetGuard.git
Request garbage collection on service actions
This commit is contained in:
parent
9a4cff7927
commit
a26373f1d5
|
@ -459,6 +459,8 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
!prefs.getBoolean("show_stats", false))
|
||||
stopForeground(true);
|
||||
|
||||
// Request garbage collection
|
||||
System.gc();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
|
||||
|
||||
|
|
Loading…
Reference in New Issue