libt2n: (reinhard) make command_client class polymoprh by adding virtrual destructor...
authorReinhard Pfau <reinhard.pfau@intra2net.com>
Thu, 5 Jun 2008 12:29:16 +0000 (12:29 +0000)
committerReinhard Pfau <reinhard.pfau@intra2net.com>
Thu, 5 Jun 2008 12:29:16 +0000 (12:29 +0000)
src/command_client.hxx
src/server.cpp

index 2ef15db..035e270 100644 (file)
@@ -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);
 };
index 7b306e1..a49bc7a 100644 (file)
@@ -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);