MT#59962 AmSessionContainer: add some code commentaries

To make the Coverity Scan happy and also
make the code a bit more excplicit in terms of
managing the ownership over the session in
(`startSessionUAS()` and `startSessionUAC()`)
just add a code commentary describing what's going on.

Change-Id: I6383c50bf99cbacc29cd77085b787c51bdbee039
master
Donat Zenichev 1 month ago
parent 282d173f23
commit e406d1d0c6

@ -258,6 +258,7 @@ string AmSessionContainer::startSessionUAC(const AmSipRequest& req, string& app_
throw;
}
/* the session ownership transferred to session container in addSession() */
session.release();
}
}
@ -329,6 +330,7 @@ void AmSessionContainer::startSessionUAS(AmSipRequest& req)
}
session->postEvent(new AmSipRequestEvent(req));
/* the session ownership transferred to session container in addSession() */
session.release();
}
}

Loading…
Cancel
Save