diff options
author | Alon Levy <alevy@redhat.com> | 2011-08-23 14:00:11 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-08-23 18:29:45 +0300 |
commit | f15cac7d7d757fed2a8ce36e8800616e905b128c (patch) | |
tree | fd34cf5e434926631c8b5e9310fa240eaf13a73a /server/main_channel.h | |
parent | 0410cccde378cb418281560d47940a3e7100a3c4 (diff) | |
download | spice-f15cac7d7d757fed2a8ce36e8800616e905b128c.tar.gz spice-f15cac7d7d757fed2a8ce36e8800616e905b128c.tar.xz spice-f15cac7d7d757fed2a8ce36e8800616e905b128c.zip |
server/reds: fix reds_main_channel_connected
instead of checking just for reds->main_channel check that there is at least
one client as well.
Diffstat (limited to 'server/main_channel.h')
-rw-r--r-- | server/main_channel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/main_channel.h b/server/main_channel.h index 80475354..713bcd09 100644 --- a/server/main_channel.h +++ b/server/main_channel.h @@ -80,6 +80,7 @@ uint32_t main_channel_client_get_link_id(MainChannelClient *mcc); int main_channel_client_is_low_bandwidth(MainChannelClient *mcc); uint64_t main_channel_client_get_bitrate_per_sec(MainChannelClient *mcc); +int main_channel_is_connected(MainChannel *main_chan); // TODO: Defines used to calculate receive buffer size, and also by reds.c // other options: is to make a reds_main_consts.h, to duplicate defines. |