mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
Moved "closing connection" log message to overload of cTBSocket::Close() in
cServerConnection.
This commit is contained in:
parent
9b91301d94
commit
94aef85adc
@ -237,6 +237,13 @@ bool cServerConnection::Respond(const char *Message, bool Last, ...)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool cServerConnection::Close()
|
||||||
|
{
|
||||||
|
if (IsOpen())
|
||||||
|
isyslog("streamdev-server: closing %s connection to %s:%d", Protocol(), RemoteIp().c_str(), RemotePort());
|
||||||
|
return cTBSocket::Close();
|
||||||
|
}
|
||||||
|
|
||||||
#if APIVERSNUM >= 10700
|
#if APIVERSNUM >= 10700
|
||||||
static int GetClippedNumProvidedSystems(int AvailableBits, cDevice *Device)
|
static int GetClippedNumProvidedSystems(int AvailableBits, cDevice *Device)
|
||||||
{
|
{
|
||||||
|
@ -103,6 +103,9 @@ public:
|
|||||||
/* Will make the socket close after sending all queued output data */
|
/* Will make the socket close after sending all queued output data */
|
||||||
void DeferClose(void) { m_DeferClose = true; }
|
void DeferClose(void) { m_DeferClose = true; }
|
||||||
|
|
||||||
|
/* Close the socket */
|
||||||
|
virtual bool Close(void);
|
||||||
|
|
||||||
/* Will retrieve an unused device for transmitting data. Receivers have
|
/* Will retrieve an unused device for transmitting data. Receivers have
|
||||||
already been attached from the device if necessary. Use the returned
|
already been attached from the device if necessary. Use the returned
|
||||||
cDevice in a following call to StartTransfer */
|
cDevice in a following call to StartTransfer */
|
||||||
|
@ -152,9 +152,8 @@ void cStreamdevServer::Action(void)
|
|||||||
|
|
||||||
cServerConnection *next = m_Clients.Next(s);
|
cServerConnection *next = m_Clients.Next(s);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
isyslog("streamdev: closing streamdev connection to %s:%d",
|
if (s->IsOpen())
|
||||||
s->RemoteIp().c_str(), s->RemotePort());
|
s->Close();
|
||||||
s->Close();
|
|
||||||
Lock();
|
Lock();
|
||||||
m_Clients.Del(s);
|
m_Clients.Del(s);
|
||||||
Unlock();
|
Unlock();
|
||||||
|
Loading…
Reference in New Issue
Block a user