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