From 03a191456834a98b9b718d40b8247f916c7fdcc8 Mon Sep 17 00:00:00 2001
From: Yun Liu <yun@yun.(none)>
Date: Thu, 15 Jan 2009 17:53:55 -0500
Subject: [PATCH] Fix the bug when user uncheck the account which fails in the
 previous registration

---
 src/sipvoiplink.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/sipvoiplink.cpp b/src/sipvoiplink.cpp
index 92c7490db9..061df2f3a1 100644
--- a/src/sipvoiplink.cpp
+++ b/src/sipvoiplink.cpp
@@ -183,8 +183,10 @@ SIPVoIPLink::sendUnregister()
 {
   _debug("SEND UNREGISTER for account %s\n" , getAccountID().c_str());
 
-  if(!_bRegister)
+  if(!_bRegister){
+      setRegistrationState(VoIPLink::Unregistered); 
       return true;
+  }
   
   _bRegister = false;
   
-- 
GitLab