[calls] dummy: call: Codestyle



commit b3aff65822edf1323c4fa8ead48d980d23884acb
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Fri Dec 10 08:32:46 2021 +0100

    dummy: call: Codestyle

 plugins/dummy/calls-dummy-call.c | 35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)
---
diff --git a/plugins/dummy/calls-dummy-call.c b/plugins/dummy/calls-dummy-call.c
index 4f7ba591..2b3889d8 100644
--- a/plugins/dummy/calls-dummy-call.c
+++ b/plugins/dummy/calls-dummy-call.c
@@ -134,25 +134,24 @@ calls_dummy_call_send_dtmf_tone (CallsCall *call,
 static gboolean
 outbound_timeout_cb (CallsDummyCall *self)
 {
-  switch (self->state)
-    {
-    case CALLS_CALL_STATE_DIALING:
-      change_state (self,
-                    CALLS_CALL_STATE_ALERTING);
-      g_timeout_add_seconds
-        (3, (GSourceFunc)outbound_timeout_cb, self);
-      break;
-
-    case CALLS_CALL_STATE_ALERTING:
-      change_state (self,
-                    CALLS_CALL_STATE_ACTIVE);
-      break;
-
-    default:
-      break;
-    }
+  switch (self->state) {
+  case CALLS_CALL_STATE_DIALING:
+    change_state (self,
+                  CALLS_CALL_STATE_ALERTING);
+    g_timeout_add_seconds
+      (3, (GSourceFunc)outbound_timeout_cb, self);
+    break;
+
+  case CALLS_CALL_STATE_ALERTING:
+    change_state (self,
+                  CALLS_CALL_STATE_ACTIVE);
+    break;
+
+  default:
+    break;
+  }
 
-  return FALSE;
+  return G_SOURCE_REMOVE;
 }
 
 


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