clear data on connect

This commit is contained in:
André Mussche 2014-03-07 12:22:18 +01:00
parent 3903dac00e
commit 57017c8082

View file

@ -491,6 +491,10 @@ begin
//remove from thread during connection handling
TIdWebsocketMultiReadThread.Instance.RemoveClient(Self);
//reset pending data
if IOHandler <> nil then
IOHandler.Clear;
strmResponse := TMemoryStream.Create;
try
//special socket.io handling, see https://github.com/LearnBoost/socket.io-spec