server/red_worker: remove forced disconnect on connect

This commit is contained in:
Alon Levy 2011-04-24 09:43:35 +03:00
parent bed8c9d4f6
commit c78e951bff

View File

@ -9744,7 +9744,6 @@ static void handle_new_display_channel(RedWorker *worker, RedClient *client, Red
size_t stream_buf_size;
int is_low_bandwidth = main_channel_client_is_low_bandwidth(red_client_get_main(client));
red_disconnect_all_display_TODO_remove_me((RedChannel *)worker->display_channel);
ensure_display_channel_created(worker, migrate);
if (!worker->display_channel) {
return;
@ -9923,7 +9922,6 @@ static void red_connect_cursor(RedWorker *worker, RedClient *client, RedsStream
CursorChannel *channel;
CursorChannelClient *ccc;
red_disconnect_cursor((RedChannel *)worker->cursor_channel);
ensure_cursor_channel_created(worker, migrate);
if (worker->cursor_channel == NULL) {
red_printf("failed to create cursor channel");