From 9ebe4ad834a0989cef8bd3bc0f5f42359c864873 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Wed, 1 Jul 2020 23:02:45 +0100 Subject: [PATCH] Update WifiInterface.cpp --- WifiInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WifiInterface.cpp b/WifiInterface.cpp index 3c0551a..c50962b 100644 --- a/WifiInterface.cpp +++ b/WifiInterface.cpp @@ -146,14 +146,14 @@ void WifiInterface::loop(Stream & wifiStream) { // We know that parser will read the entire buffer before starting to write to it. // Otherwise we would have to copy the buffer elsewhere and RAM is in short supply. - // TODO ... tell JMRI parser that callbacks are diallowed because we dont want to handle the async bool closeAfter=false; // Intercept HTTP requests if (isHTML()) { HTTPParser::parse(streamer,buffer); closeAfter=true; } - else if (buffer[0]=='<') parser.parse(streamer,buffer); + else if (buffer[0]=='<') parser.parse(streamer,buffer, true); // tell JMRI parser that callbacks are diallowed because we dont want to handle the async + else WiThrottle::getThrottle(streamer, connectionId)->parse(streamer, buffer);