Author: derek Date: Sun Nov 5 23:10:14 2006 New Revision: 157 Modified: sofaswitch/trunk/mcu/manager.cxx sofaswitch/trunk/mcu/participant.cxx sofaswitch/trunk/mcu/participant.h Log: Fix a build issue. Add a comment to the source code. Modified: sofaswitch/trunk/mcu/manager.cxx ============================================================================== --- sofaswitch/trunk/mcu/manager.cxx (original) +++ sofaswitch/trunk/mcu/manager.cxx Sun Nov 5 23:10:14 2006 @@ -224,7 +224,10 @@ Comms *c = runningComms->GetNextComms(); if (c == NULL) return; - c->SetRemoteController(requester); + + /* The next line of code ensures there will be a message, generated by the server, + sent to the node specified in requester when c dies. */ + c->SetRemoteController(requester); PTRACE(3, "Prior Create Member, size is " << activeMembers.GetSize()); PSafePtr <Member> member = new Member(*this, roomId, c->GetOurId()); Modified: sofaswitch/trunk/mcu/participant.cxx ============================================================================== --- sofaswitch/trunk/mcu/participant.cxx (original) +++ sofaswitch/trunk/mcu/participant.cxx Sun Nov 5 23:10:14 2006 @@ -89,6 +89,12 @@ dictionary.ParticipantReleased(GetKey()); } + +void Participant::DestroyReverseLink() +{ + dstMemberPtr->DestroyThisParticipant(matchingKey); +} + void Participant::Clear() { Modified: sofaswitch/trunk/mcu/participant.h ============================================================================== --- sofaswitch/trunk/mcu/participant.h (original) +++ sofaswitch/trunk/mcu/participant.h Sun Nov 5 23:10:14 2006 @@ -259,8 +259,7 @@ Remember, this participant instance is from srcMemberId(this) to dstMemberId; */ - void DestroyReverseLink() { dstMemberPtr->DestroyThisParticipant(matchingKey); } - + void DestroyReverseLink(); /**link to the manager, who knows everything about everything */ Manager & manager;
participants (1)
-
SofaSWITCH SVN