diff options
Diffstat (limited to 'src/ClientExpire.cxx')
-rw-r--r-- | src/ClientExpire.cxx | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/ClientExpire.cxx b/src/ClientExpire.cxx index f599e472d..56b003df8 100644 --- a/src/ClientExpire.cxx +++ b/src/ClientExpire.cxx @@ -26,18 +26,11 @@ static guint expire_source_id; void Client::SetExpired() { - if (!IsExpired()) - client_schedule_expire(); + if (IsExpired()) + return; - if (source_id != 0) { - g_source_remove(source_id); - source_id = 0; - } - - if (channel != NULL) { - g_io_channel_unref(channel); - channel = nullptr; - } + client_schedule_expire(); + BufferedSocket::Close(); } static void |