Commit 2a77dc7e authored by Erwan Croze's avatar Erwan Croze 👋🏻

Workaround concerning X86 release on account saving

parent e07c2950
......@@ -332,9 +332,11 @@ namespace Linphone.Model {
int timeout = 2000;
Stopwatch stopwatch = Stopwatch.StartNew();
while (true) {
if (stopwatch.ElapsedMilliseconds >= timeout || cfg != null || cfg.State == RegistrationState.Cleared || cfg.State == RegistrationState.None) {
if (stopwatch.ElapsedMilliseconds >= timeout || cfg.State == RegistrationState.Cleared || cfg.State == RegistrationState.None) {
break;
}
LinphoneManager.Instance.Core.Iterate();
System.Threading.Tasks.Task.Delay(100);
}
}
......
......@@ -99,7 +99,9 @@ namespace Linphone.Views {
/// </summary>
protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) {
if (saveSettingsOnLeave) {
Save();
LinphoneManager.Instance.CoreDispatcher.RunIdleAsync((args) => {
Save();
});
}
base.OnNavigatingFrom(e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment