From 650e238b7676393cd426a7cdb86fcc4fd2d87a6d Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 4 Oct 2021 04:18:06 +0200 Subject: Ensure profile is saved if auth/password is queried on startup This ensure the profile counter is incremented and the profile is saved to disk to avoid the race condition of not getting the user/pass which was started. Closes #1342 --- main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui') diff --git a/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt b/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt index a2799d09..5426f669 100644 --- a/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt +++ b/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt @@ -197,7 +197,7 @@ class ConfigConverter : BaseActivity(), FileSelectCallback, View.OnClickListener ConfigParser.useEmbbedUserAuth(mResult, mEmbeddedPwFile) vpl.addProfile(mResult) - vpl.saveProfile(this, mResult) + ProfileManager.saveProfile(this, mResult) vpl.saveProfileList(this) result.putExtra(VpnProfile.EXTRA_PROFILEUUID, mResult!!.uuid.toString()) setResult(Activity.RESULT_OK, result) -- cgit v1.2.3