Commit 2ff02216 authored by Mickaël Turnel's avatar Mickaël Turnel

Fix invalidCastException when pausing a call

parent cde29a40
......@@ -63,7 +63,7 @@ namespace Linphone.Views {
Call call = LinphoneManager.Instance.Core.CurrentCall;
if (call == null) {
if (LinphoneManager.Instance.Core.CallsNb > 0) {
call = (Call)LinphoneManager.Instance.Core.Calls.GetEnumerator();
call = (Call)LinphoneManager.Instance.Core.Calls.GetEnumerator().Current;
}
}
return call;
......
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