server/red_channel: use red_channel_receive

This commit is contained in:
Alon Levy 2010-11-07 13:13:51 +02:00
parent a5afee2842
commit 23f13aa983

View File

@ -422,7 +422,7 @@ static void red_channel_event(int fd, int event, void *data)
RedChannel *channel = (RedChannel *)data;
if (event & SPICE_WATCH_EVENT_READ) {
red_peer_handle_incoming(channel->peer, &channel->incoming);
red_channel_receive(channel);
}
if (event & SPICE_WATCH_EVENT_WRITE) {
red_channel_push(channel);