Commit e1b466f7 authored by Sylvain Berfini's avatar Sylvain Berfini

Fix hangup after going background/foreground during a call

parent 66cf9092
......@@ -222,6 +222,7 @@ namespace Linphone.Model
// Cancel any incoming call
LinphoneCore.CoreListener = null;
if (LinphoneCore.GetCallsNb() == 1)
LinphoneCall call = (LinphoneCall)LinphoneCore.GetCalls()[0];
......@@ -243,6 +244,7 @@ namespace Linphone.Model
// From this point onwards, it is no longer safe to use any objects in the background process,
// or for the background process to call back into this process.
server = null;
BackgroundManager.Instance.OopServer = null;
// Lastly, set the event that indicates that the UI is no longer connected to the background process.
if (uiDisconnectedEvent == null)
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