Commit 3cc6e3ef authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix crash when an incoming call times out.

parent c27c1b07
......@@ -86,7 +86,9 @@ bool CorePrivate::isAlreadyInCallWithAddress (const Address &addr) const {
void CorePrivate::iterateCalls (time_t currentRealTime, bool oneSecondElapsed) const {
for (const auto &call : calls) {
// Make a copy of the list af calls because it may be altered during calls to the Call::iterate method
list<shared_ptr<Call>> savedCalls(calls);
for (const auto &call : savedCalls) {
call->getPrivate()->iterate(currentRealTime, oneSecondElapsed);
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