ekiga r6485 - in trunk: . src/endpoints



Author: dsandras
Date: Wed Jul 23 19:47:56 2008
New Revision: 6485
URL: http://svn.gnome.org/viewvc/ekiga?rev=6485&view=rev

Log:
Restored exit method.


Modified:
   trunk/ChangeLog
   trunk/src/endpoints/sip.cpp
   trunk/src/endpoints/sip.h

Modified: trunk/src/endpoints/sip.cpp
==============================================================================
--- trunk/src/endpoints/sip.cpp	(original)
+++ trunk/src/endpoints/sip.cpp	Wed Jul 23 19:47:56 2008
@@ -485,6 +485,22 @@
 }
 
 
+void CallProtocolManager::ShutDown ()
+{
+  listeners.RemoveAll ();
+
+  for (PSafePtr<SIPTransaction> transaction(transactions, PSafeReference);      transaction != NULL; ++transaction)
+    transaction->WaitForCompletion();
+
+  while (activeSIPHandlers.GetSize() > 0) {
+    PSafePtr<SIPHandler> handler = activeSIPHandlers;
+    activeSIPHandlers.Remove(handler);
+  }
+
+  SIPEndPoint::ShutDown ();
+}
+
+
 void CallProtocolManager::Register (const Ekiga::Account & account)
 {
   std::stringstream aor;

Modified: trunk/src/endpoints/sip.h
==============================================================================
--- trunk/src/endpoints/sip.h	(original)
+++ trunk/src/endpoints/sip.h	Wed Jul 23 19:47:56 2008
@@ -134,6 +134,8 @@
 
 
       /* OPAL Methods */
+      void ShutDown ();
+
       void Register (const Ekiga::Account & account);
 
       void OnRegistered (const PString & aor,



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