From 3e035279300d1ac238f2f063e5ca5f478923d7cb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Jan 2013 01:12:08 +0100 Subject: Client: move output buffer code to new class PeakBuffer --- src/ClientEvent.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ClientEvent.cxx') diff --git a/src/ClientEvent.cxx b/src/ClientEvent.cxx index 1e06ad48..201709c7 100644 --- a/src/ClientEvent.cxx +++ b/src/ClientEvent.cxx @@ -46,7 +46,7 @@ client_out_event(G_GNUC_UNUSED GIOChannel *source, GIOCondition condition, g_timer_start(client->last_activity); - if (g_queue_is_empty(client->deferred_send)) { + if (client->output_buffer.IsEmpty()) { /* done sending deferred buffers exist: schedule read */ client->source_id = g_io_add_watch(client->channel, @@ -97,7 +97,7 @@ client_in_event(G_GNUC_UNUSED GIOChannel *source, GIOCondition condition, return false; } - if (!g_queue_is_empty(client->deferred_send)) { + if (!client->output_buffer.IsEmpty()) { /* deferred buffers exist: schedule write */ client->source_id = g_io_add_watch(client->channel, GIOCondition(G_IO_OUT|G_IO_ERR|G_IO_HUP), -- cgit v1.2.3