diff options
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; } |