void WhiteboardSessionManager::handlePresenceReceived(Presence::ref presence) {
    if (!presence->isAvailable()) {
        WhiteboardSession::ref session = getSession(presence->getFrom());
        if (session) {
            session->cancel();
        }
    }
}
예제 #2
0
 void WhiteboardManager::cancelSession(const JID& from) {
     WhiteboardSession::ref session = whiteboardSessionManager_->getSession(from);
     if (session) {
         session->cancel();
     }
 }