From 4e00e4dc650d2b2b2834530ea2e4dc0c1c5c6b7e Mon Sep 17 00:00:00 2001
From: Yun Liu <yun@yun.(none)>
Date: Tue, 6 Jan 2009 14:58:59 -0500
Subject: [PATCH] Fix daemon crash caused by the previous patch ( for bug
 ticket #129)

---
 src/managerimpl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp
index ab0f97ff7d..485c697de2 100644
--- a/src/managerimpl.cpp
+++ b/src/managerimpl.cpp
@@ -274,7 +274,7 @@ ManagerImpl::answerCall(const CallID& id)
     return false;
   }
 
-  if (hasCurrentCall()) {
+  if (id != getCurrentCallId()) {
     _debug("* Manager Info: there is currently a call, try to hold it\n");
     onHoldCall(getCurrentCallId());
   }
-- 
GitLab