diff options
author | Francois Gouget <fgouget@codeweavers.com> | 2015-12-14 10:52:43 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-12-14 10:53:40 +0000 |
commit | cbc4e07682a8a40f8d270e7a092973ac4f93f36d (patch) | |
tree | e2e559659623942ca1a7acc7ce0c3ef1bf58e84e /server/cursor-channel.c | |
parent | 67f619d551cc22f6f6bdc1cc09d616f1996718e4 (diff) |
server: Rename DISPLAY_CLIENT_TIMEOUT and de-duplicate it
Given that it is used for both cursor and display, COMMON_CLIENT_TIMEOUT
seems more appropriate. Also define it only in red-worker.h.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/cursor-channel.c')
-rw-r--r-- | server/cursor-channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/cursor-channel.c b/server/cursor-channel.c index 840ff304..ec994e3d 100644 --- a/server/cursor-channel.c +++ b/server/cursor-channel.c @@ -549,7 +549,7 @@ void cursor_channel_reset(CursorChannel *cursor) red_pipes_add_verb(channel, SPICE_MSG_CURSOR_RESET); } if (!red_channel_wait_all_sent(&cursor->common.base, - DISPLAY_CLIENT_TIMEOUT)) { + COMMON_CLIENT_TIMEOUT)) { red_channel_apply_clients(channel, red_channel_client_disconnect_if_pending_send); } |