[Nice] [nice/master] Exit with error when the timeout is reached

Olivier Crête olivier.crete at collabora.co.uk
Wed Nov 5 14:01:44 PST 2008


---
 agent/test-fallback.c |    4 +---
 agent/test-fullmode.c |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/agent/test-fallback.c b/agent/test-fallback.c
index 023c4b8..13cbb90 100644
--- a/agent/test-fallback.c
+++ b/agent/test-fallback.c
@@ -76,9 +76,7 @@ static gboolean timer_cb (gpointer pointer)
   /* signal status via a global variable */
 
   /* note: should not be reached, abort */
-  g_debug ("ERROR: test has got stuck, aborting...");
-  exit (-1);
-
+  g_error ("ERROR: test has got stuck, aborting...");
 }
 
 static void cb_nice_recv (NiceAgent *agent, guint stream_id, guint component_id, guint len, gchar *buf, gpointer user_data)
diff --git a/agent/test-fullmode.c b/agent/test-fullmode.c
index 7b5259f..ba3af6f 100644
--- a/agent/test-fullmode.c
+++ b/agent/test-fullmode.c
@@ -74,9 +74,7 @@ static gboolean timer_cb (gpointer pointer)
   /* signal status via a global variable */
 
   /* note: should not be reached, abort */
-  g_debug ("ERROR: test has got stuck, aborting...");
-  exit (-1);
-
+  g_error ("ERROR: test has got stuck, aborting...");
 }
 
 static void cb_nice_recv (NiceAgent *agent, guint stream_id, guint component_id, guint len, gchar *buf, gpointer user_data)
-- 
1.5.6.5




More information about the Nice mailing list