[Spice-devel,spice-server,11/20] Reuse reds_core_timer_add

Submitted by Frediano Ziglio on Nov. 24, 2016, 5:38 p.m.

Details

Message ID 20161124173907.3341-12-fziglio@redhat.com
State Accepted
Commit cb3216aa83d9ec65fa95fb18a9523bfc7fca820b
Headers show
Series "Start cleaning objects on destruction" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Nov. 24, 2016, 5:38 p.m.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/main-channel-client.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/main-channel-client.c b/server/main-channel-client.c
index 987f260..576b31f 100644
--- a/server/main-channel-client.c
+++ b/server/main-channel-client.c
@@ -174,9 +174,7 @@  static void main_channel_client_constructed(GObject *object)
     RedsState *reds =
         red_channel_get_server(red_channel_client_get_channel(RED_CHANNEL_CLIENT(object)));
 
-    self->priv->ping_timer =
-        reds_get_core_interface(reds)->timer_add(reds_get_core_interface(reds),
-                                                 ping_timer_cb, self);
+    self->priv->ping_timer = reds_core_timer_add(reds, ping_timer_cb, self);
     if (!self->priv->ping_timer) {
         spice_error("ping timer create failed");
     }