Request garbage collection on service actions

This commit is contained in:
M66B 2019-07-21 08:36:39 +02:00
parent 9a4cff7927
commit a26373f1d5
1 changed files with 2 additions and 0 deletions

View File

@ -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));