Commit 06547008 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fixing crash in account settings after change

parent d881ab95
......@@ -332,10 +332,9 @@ namespace Linphone.Model {
int timeout = 2000;
Stopwatch stopwatch = Stopwatch.StartNew();
while (true) {
if (stopwatch.ElapsedMilliseconds >= timeout || cfg.State == RegistrationState.Cleared || cfg.State == RegistrationState.None) {
if (stopwatch.ElapsedMilliseconds >= timeout || cfg != null || cfg.State == RegistrationState.Cleared || cfg.State == RegistrationState.None) {
break;
}
// Thread.Sleep(1);
}
}
......
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