diff --git a/lib/remote/eventshandler.cpp b/lib/remote/eventshandler.cpp index e05ef229b..06d541221 100644 --- a/lib/remote/eventshandler.cpp +++ b/lib/remote/eventshandler.cpp @@ -116,16 +116,12 @@ bool EventsHandler::HandleRequest( auto event (subscriber.GetInbox()->Shift(yc)); if (event) { - CpuBoundWork buildingResponse (yc); - String body = JsonEncode(event); boost::algorithm::replace_all(body, "\n", ""); asio::const_buffer payload (body.CStr(), body.GetLength()); - buildingResponse.Done(); - asio::async_write(stream, payload, yc); asio::async_write(stream, newLine, yc); stream.async_flush(yc);