Commit 67780856 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Added iterate loop to LinphoneManager

parent 86d18503
No preview for this file type
......@@ -60,6 +60,9 @@ namespace Linphone.Model
// A timespan representing an indefinite wait
private static readonly TimeSpan indefiniteWait = new TimeSpan(0, 0, 0, 0, -1);
// A timer to invoke LinphoneCore.Iterate()
private static Timer timer;
/// <summary>
/// Starts and connects the UI to the background process
/// </summary>
......@@ -152,6 +155,18 @@ namespace Linphone.Model
return;
server.LinphoneCoreFactory.CreateLinphoneCore(this);
timer = new Timer(LinphoneCoreIterate, null, 1, 20);
}
private void LinphoneCoreIterate(object o)
{
if (LinphoneCore == null && timer != null)
{
timer.Dispose();
return;
}
LinphoneCore.Iterate();
}
/// <summary>
......
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