Permalink
Browse files

CumulusEdge minor improvement

  • Loading branch information...
1 parent 321502c commit ca335fee0696bc518a0ba312fa5e6bac981352c0 @cumulusdev cumulusdev committed Jan 17, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 CumulusLib/sources/RTMFPServer.cpp
@@ -329,9 +329,11 @@ Session& RTMFPServer::createSession(UInt32 farId,const Peer& peer,const UInt8* d
}
void RTMFPServer::destroySession(Session& session) {
- Edge* pEdge = edges(session.peer.address);
- if(pEdge)
- pEdge->removeSession(session);
+ if(session.flags&SESSION_BY_EDGE) {
+ Edge* pEdge = edges(session.peer.address);
+ if(pEdge)
+ pEdge->removeSession(session);
+ }
}
bool RTMFPServer::realTime(bool& terminate) {

0 comments on commit ca335fe

Please sign in to comment.