X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fcommand_server.cpp;h=e41d41bc85df23da9d66f5c7e2de2de8fbb3b735;hp=2e3beb5b0d923e8ce63cf3f9f6e9b0ce1eea382a;hb=1bdd13c030b192cd3087eee64a581a0d43766d16;hpb=4b995a82e29808cf8125889f83ec70fc7b5c77af diff --git a/src/command_server.cpp b/src/command_server.cpp index 2e3beb5..e41d41b 100644 --- a/src/command_server.cpp +++ b/src/command_server.cpp @@ -54,7 +54,9 @@ command_server::command_server(server& _s) void command_server::send_hello(unsigned int conn_id) { server_connection* sc=s.get_connection(conn_id); - // TODO: Gerd: Throw exception if get_connection() returns NULL or just return? + + if (!sc) + return; // connection not existing, so no hello std::ostringstream hello;