[ekiga] OpalAccount: Close presentity when disabling account.



commit 270c71f2fb50839a8decc7469cd5aa0e54586b20
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Jan 11 15:13:39 2015 +0100

    OpalAccount: Close presentity when disabling account.

 lib/engine/components/opal/opal-account.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 3f3f87d..131edea 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -538,6 +538,8 @@ Opal::Account::disable ()
       if (type != Account::H323) {
         sip_endpoint->Unsubscribe (SIPSubscribe::MessageSummary, get_transaction_aor (get_aor ()));
       }
+
+      presentity->Close ();
     }
     // Register the given aor to the given registrar
     sip_endpoint->disable_account (*this);
@@ -958,9 +960,6 @@ Opal::Account::handle_registration_event (Ekiga::Account::RegistrationState stat
     failed_registration_already_notified = false;
     state = state_;
 
-    if (presentity)
-      presentity->Close ();
-
     Ekiga::Runtime::run_in_main (boost::ref (updated));
     /* delay destruction of this account until the
        unsubscriber thread has called back */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]