diff --git a/daemon/src/voiplink.cpp b/daemon/src/voiplink.cpp index 8eb60318ac39059429b888eb6125f093e9ab86a8..34e843675deedf9564278215803c9e8788d5915d 100644 --- a/daemon/src/voiplink.cpp +++ b/daemon/src/voiplink.cpp @@ -55,20 +55,15 @@ bool VoIPLink::addCall (Call* call) return false; } -bool VoIPLink::removeCall (const std::string& id) +void VoIPLink::removeCall (const std::string& id) { ost::MutexLock m (_callMapMutex); - _debug ("VoipLink: delete call"); - terminateCall (id); - _debug ("VoipLink: removing call %s from list", id.c_str()); - if (_callMap.erase (id)) { - return true; - } + _callMap.erase (id); - return false; + terminateCall (id); } Call* VoIPLink::getCall (const std::string& id) diff --git a/daemon/src/voiplink.h b/daemon/src/voiplink.h index e1a973e2614eca823608ae90f976cbda46d5dbad..0a8b945e692a5120005987a6f442252353dad7ce 100644 --- a/daemon/src/voiplink.h +++ b/daemon/src/voiplink.h @@ -211,9 +211,8 @@ class VoIPLink /** Remove a call from the call map (protected by mutex) * @param id A Call ID - * @return bool True if the call was correctly removed */ - bool removeCall (const std::string& id); + void removeCall (const std::string& id); /** * Remove all the call from the map