X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fcommand_client.cpp;h=41c74de07f6060c8fd31d7b1221a930d121cc52c;hp=c0e863ca44a5990b5c5dd81296505c14055031c2;hb=04d86ba4ad4f14ab08f38804e772ec46a8ac92b0;hpb=8104c8f70605ee24230e5988d7bf68e3fce7465a diff --git a/src/command_client.cpp b/src/command_client.cpp index c0e863c..41c74de 100644 --- a/src/command_client.cpp +++ b/src/command_client.cpp @@ -52,7 +52,7 @@ void command_client::read_hello() { // TODO: fix timeout string resultpacket; - while(!c.get_packet(resultpacket)) + while(!c.get_packet(resultpacket) && !c.is_closed()) c.fill_buffer(); istringstream hello(resultpacket);