From 7872fb3de9ece6a36d162603f8756dd2e1d441dd Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 23 Sep 2008 23:52:58 +0000 Subject: [PATCH] corrected return value (false on error) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1099 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmEventDispatcher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/AmEventDispatcher.cpp b/core/AmEventDispatcher.cpp index b6897661..8f1b4c8f 100644 --- a/core/AmEventDispatcher.cpp +++ b/core/AmEventDispatcher.cpp @@ -35,6 +35,7 @@ AmEventDispatcher* AmEventDispatcher::instance() return _instance ? _instance : ((_instance = new AmEventDispatcher())); } +/** @return false on error */ bool AmEventDispatcher::addEventQueue(const string& local_tag, AmEventQueueInterface* q, const string& callid, @@ -60,7 +61,7 @@ bool AmEventDispatcher::addEventQueue(const string& local_tag, m_queues.unlock(); - return exists; + return !exists; } AmEventQueueInterface* AmEventDispatcher::delEventQueue(const string& local_tag,