ekiga r6661 - in trunk: . src/endpoints



Author: dsandras
Date: Wed Aug 20 18:03:58 2008
New Revision: 6661
URL: http://svn.gnome.org/viewvc/ekiga?rev=6661&view=rev

Log:
Async hangup.


Modified:
   trunk/ChangeLog
   trunk/src/endpoints/opal-call.cpp
   trunk/src/endpoints/opal-call.h

Modified: trunk/src/endpoints/opal-call.cpp
==============================================================================
--- trunk/src/endpoints/opal-call.cpp	(original)
+++ trunk/src/endpoints/opal-call.cpp	Wed Aug 20 18:03:58 2008
@@ -80,10 +80,9 @@
 void
 Opal::Call::hangup ()
 {
-  if (!is_outgoing () && !IsEstablished ())
-    Clear (OpalConnection::EndedByAnswerDenied);
-  else
-    Clear ();
+  PThread::Create (PCREATE_NOTIFIER (OnHangup), NULL,
+                   PThread::AutoDeleteThread, PThread::NormalPriority,
+                   "Opal::Call Answer Thread");
 }
 
 
@@ -601,6 +600,16 @@
 
 
 void
+Opal::Call::OnHangup (PThread &, INT /*param*/)
+{
+  if (!is_outgoing () && !IsEstablished ())
+    Clear (OpalConnection::EndedByAnswerDenied);
+  else
+    Clear ();
+}
+
+
+void
 Opal::Call::OnNoAnswerTimeout (PTimer &,
                                INT) 
 {

Modified: trunk/src/endpoints/opal-call.h
==============================================================================
--- trunk/src/endpoints/opal-call.h	(original)
+++ trunk/src/endpoints/opal-call.h	Wed Aug 20 18:03:58 2008
@@ -184,6 +184,8 @@
 
     PDECLARE_NOTIFIER (PThread, Opal::Call, OnAnswer);
 
+    PDECLARE_NOTIFIER (PThread, Opal::Call, OnHangup);
+
 
     /*
      * Helper methods



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