Commit 5d95434d authored by Sylvain Berfini's avatar Sylvain Berfini

Fix linphone core destroy

parent 7f62581b
......@@ -289,6 +289,7 @@ IVector<Object^>^ Linphone::Core::LinphoneCore::GetAuthInfos()
void Linphone::Core::LinphoneCore::Destroy()
{
gApiLock.Lock();
linphone_core_destroy(this->lc);
IterateEnabled = false;
gApiLock.Unlock();
}
......
......@@ -222,13 +222,6 @@ namespace Linphone.Model
try
{
LinphoneCore.CoreListener = null;
// Cancel any incoming call
if (LinphoneCore.GetCallsNb() == 1)
{
LinphoneCall call = (LinphoneCall)LinphoneCore.GetCalls()[0];
if (call.GetState() == LinphoneCallState.IncomingReceived)
LinphoneCore.TerminateCall(call);
}
LinphoneCore.SetNetworkReachable(false); // To prevent the app from sending an unregister to the server
LinphoneCore.Destroy();
Debug.WriteLine("[LinphoneManager] LinphoneCore has been destroyed");
......
......@@ -593,7 +593,7 @@ namespace Linphone.Views
});
}
public void UpdateComposingMessage()
private void UpdateComposingMessage()
{
if (chatRoom == null)
return;
......
linphone @ 9239a4e9
Subproject commit abb7c2d50c948f4ef8715b6d58f0e8eeb43e7845
Subproject commit 9239a4e91ad6974c131a27c78e0b9f9c28094b9a
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