From: Reinhard Pfau Date: Thu, 5 Jun 2008 12:29:16 +0000 (+0000) Subject: libt2n: (reinhard) make command_client class polymoprh by adding virtrual destructor... X-Git-Tag: v0.4~31 X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=commitdiff_plain;h=38de59c2572658f738030390f2280f86a19f000b libt2n: (reinhard) make command_client class polymoprh by adding virtrual destructor. typo fixed. --- diff --git a/src/command_client.hxx b/src/command_client.hxx index 2ef15db..035e270 100644 --- a/src/command_client.hxx +++ b/src/command_client.hxx @@ -46,6 +46,7 @@ class command_client command_client(client_connection& _c, long long _command_timeout_usec=command_timeout_usec_default, long long _hello_timeout_usec=hello_timeout_usec_default); + virtual ~command_client() {} void send_command(command* cmd, result_container &res); }; diff --git a/src/server.cpp b/src/server.cpp index 7b306e1..a49bc7a 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -208,7 +208,7 @@ void server::cleanup() if (i->second->is_closed() && !i->second->packet_available()) { // closed and no usable data in buffer -> remove - LOGSTREAM(debug,"removing conneciton " << i->first << " because it is closed and no more data waiting"); + LOGSTREAM(debug,"removing connection " << i->first << " because it is closed and no more data waiting"); delete i->second; connections.erase(i);