Client: rebase on the new BufferedSocket class

This commit is contained in:
Max Kellermann
2013-01-14 23:42:06 +01:00
parent 396480cf94
commit 39439b80f5
10 changed files with 66 additions and 304 deletions

View File

@@ -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