X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FConsole%2FServer.cc;h=a1bad60e45e27a1a2b53e43b9e1e77e93fb57951;hb=d5a72d0b3f6fee56dba6de1c54cafb448ebe3457;hp=66564bb019487f2e28c5bbf1dc60de831f5ccb3c;hpb=b89e3166f7680755683dccee5e48cb3a820185c0;p=senf.git diff --git a/Utils/Console/Server.cc b/Utils/Console/Server.cc index 66564bb..a1bad60 100644 --- a/Utils/Console/Server.cc +++ b/Utils/Console/Server.cc @@ -111,7 +111,15 @@ prefix_ void senf::console::Server::newClient(int event) prefix_ void senf::console::Server::removeClient(Client & client) { - SENF_LOG(( "Disposing client " << client.handle().peer() )); + SENF_LOG_BLOCK(({ + log << "Disposing client "; + try { + log << client.handle().peer(); + } + catch (senf::SystemException ex) { + log << "(unknown)"; + } + })); // THIS DELETES THE CLIENT INSTANCE !! clients_.erase(boost::intrusive_ptr(&client)); }