diff options
Diffstat (limited to 'server/main-channel.c')
-rw-r--r-- | server/main-channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/main-channel.c b/server/main-channel.c index 572fcac1..f53946dd 100644 --- a/server/main-channel.c +++ b/server/main-channel.c @@ -1113,7 +1113,7 @@ static MainChannelClient *main_channel_client_create(MainChannel *main_chan, Red mcc->connection_id = connection_id; mcc->bitrate_per_sec = ~0; #ifdef RED_STATISTICS - if (!(mcc->ping_timer = reds_get_core_interface(main_chan->base.reds)->timer_add(ping_timer_cb, NULL))) { + if (!(mcc->ping_timer = reds_get_core_interface(red_channel_get_server((RedChannel*)main_chan))->timer_add(ping_timer_cb, NULL))) { spice_error("ping timer create failed"); } mcc->ping_interval = PING_INTERVAL; |