From: Mikko Rasa Date: Wed, 10 Aug 2011 19:30:52 +0000 (+0300) Subject: Don't generate a duplicate signal when the connection is closed X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=commitdiff_plain;h=2d106c4711c2277b9b3a7e53ad66c4bc22a6569f Don't generate a duplicate signal when the connection is closed --- diff --git a/source/http/server.cpp b/source/http/server.cpp index 47de7dd..b18ed4c 100644 --- a/source/http/server.cpp +++ b/source/http/server.cpp @@ -84,6 +84,8 @@ void Server::client_data_available(Client &cl) char rbuf[4096]; unsigned len = cl.sock->read(rbuf, sizeof(rbuf)); + if(cl.stale) + return; cl.in_buf.append(rbuf, len); RefPtr response;