From c652e8fa8141d7e323cbdbbc0a662244a5a84955 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Tue, 22 Nov 2011 01:15:09 +0100 Subject: Added server menu with list of clients. Connections can be terminated with the "red" key. The former main menu action of suspending live TV moved to the "blue" key. --- server/connectionHTTP.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/connectionHTTP.h') diff --git a/server/connectionHTTP.h b/server/connectionHTTP.h index 56f89b0..8f071ce 100644 --- a/server/connectionHTTP.h +++ b/server/connectionHTTP.h @@ -47,6 +47,8 @@ public: virtual void Attach(void) { if (m_LiveStreamer != NULL) m_LiveStreamer->Attach(); } virtual void Detach(void) { if (m_LiveStreamer != NULL) m_LiveStreamer->Detach(); } + virtual cString ToText() const; + virtual bool CanAuthenticate(void); virtual bool Command(char *Cmd); @@ -57,7 +59,7 @@ public: inline bool cConnectionHTTP::Abort(void) const { - return m_LiveStreamer && m_LiveStreamer->Abort(); + return !IsOpen() || (m_LiveStreamer && m_LiveStreamer->Abort()); } #endif // VDR_STREAMDEV_SERVERS_CONNECTIONVTP_H -- cgit v1.2.3