Client: move connection functions into the class

This commit is contained in:
Max Kellermann
2013-01-15 10:11:08 +01:00
parent 3fcf17cb79
commit 1e2018ce83
11 changed files with 50 additions and 56 deletions

View File

@@ -149,13 +149,12 @@ client_new(Partition &partition,
}
void
client_close(Client *client)
Client::Close()
{
client_list_remove(client);
client_list_remove(this);
client_set_expired(client);
SetExpired();
g_log(G_LOG_DOMAIN, LOG_LEVEL_SECURE,
"[%u] closed", client->num);
delete client;
g_log(G_LOG_DOMAIN, LOG_LEVEL_SECURE, "[%u] closed", num);
delete this;
}