From 2d106c4711c2277b9b3a7e53ad66c4bc22a6569f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 10 Aug 2011 22:30:52 +0300 Subject: [PATCH] Don't generate a duplicate signal when the connection is closed --- source/http/server.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.45.2