From caed32867fcd93ce987ee6d43be3bfc260f4e943 Mon Sep 17 00:00:00 2001 From: Daniel Stiner Date: Fri, 12 Mar 2021 00:05:50 -0800 Subject: [PATCH] Cleanup --- src/FtlControlConnection.h | 1 - src/FtlServer.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FtlControlConnection.h b/src/FtlControlConnection.h index daef5b7..04f1d7f 100644 --- a/src/FtlControlConnection.h +++ b/src/FtlControlConnection.h @@ -80,7 +80,6 @@ class FtlControlConnection FtlStream* ftlStream = nullptr; bool hmacRequested = false; bool isAuthenticated = false; - bool mediaPortRequested = false; bool isStreaming = false; ftl_channel_id_t channelId = 0; std::vector hmacPayload; diff --git a/src/FtlServer.cpp b/src/FtlServer.cpp index c6999ff..7af2446 100644 --- a/src/FtlServer.cpp +++ b/src/FtlServer.cpp @@ -454,7 +454,7 @@ void FtlServer::eventTerminateControlConnection( std::move(pendingControlConnections.at(event->Connection).first); pendingControlConnections.erase(event->Connection); dispatchAsyncCall( - [this, event, control = std::move(control)]() mutable + [event, control = std::move(control)]() mutable { control->Stop(event->ResponseCode); });