TunnelManager: Simplify save/resume methods

Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Samuel Holland
2018-01-07 21:52:14 -06:00
parent 4a3d68bb7d
commit 1f30e133d6
2 changed files with 9 additions and 10 deletions
@@ -22,7 +22,7 @@ public class BootShutdownReceiver extends BroadcastReceiver {
tunnelManager.restoreState().whenComplete(ExceptionLoggers.D);
} else if (Intent.ACTION_SHUTDOWN.equals(action)) {
Log.d(TAG, "Broadcast receiver saving state (shutdown)");
tunnelManager.saveState().whenComplete(ExceptionLoggers.D);
tunnelManager.saveState();
}
}
}