diff options
author | Max Kellermann <max@duempel.org> | 2013-01-15 10:11:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-15 10:59:28 +0100 |
commit | 1e2018ce831654f5bf649c5ae4d2e9b003c5a52e (patch) | |
tree | 3b9a26135f1a2598f0dcf77f72ea2beb7cb59162 /src/ClientNew.cxx | |
parent | 3fcf17cb79c1bbec631c1a440eb05953ece87b0d (diff) |
Client: move connection functions into the class
Diffstat (limited to 'src/ClientNew.cxx')
-rw-r--r-- | src/ClientNew.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ClientNew.cxx b/src/ClientNew.cxx index 77eb33c8e..4a22ca368 100644 --- a/src/ClientNew.cxx +++ b/src/ClientNew.cxx @@ -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; } |