mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
The "inetAddr" must be set after CloseSocket().
This commit is contained in:
parent
d1fdc390c9
commit
a05766c90d
@ -11,7 +11,6 @@ msgstr ""
|
||||
"PO-Revision-Date: 2010-09-09 09:09+0300\n"
|
||||
"Last-Translator: Tobias Grimm <tg@e-tobi.net>\n"
|
||||
"Language-Team: German\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -11,7 +11,6 @@ msgstr ""
|
||||
"PO-Revision-Date: 2010-09-09 09:09+0300\n"
|
||||
"Last-Translator: Rolf Ahrenberg\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
"Language: fi\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -12,7 +12,6 @@ msgstr ""
|
||||
"PO-Revision-Date: 2010-09-09 09:09+0300\n"
|
||||
"Last-Translator: NIVAL Michaël <mnival@club-internet.fr>\n"
|
||||
"Language-Team: French\n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -11,7 +11,6 @@ msgstr ""
|
||||
"PO-Revision-Date: 2010-09-09 09:09+0300\n"
|
||||
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
|
||||
"Language-Team: Italian\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -11,7 +11,6 @@ msgstr ""
|
||||
"PO-Revision-Date: 2010-09-09 09:09+0300\n"
|
||||
"Last-Translator: Carel\n"
|
||||
"Language-Team: Dutch\n"
|
||||
"Language: nl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
@ -11,7 +11,6 @@ msgstr ""
|
||||
"PO-Revision-Date: 2010-09-09 09:09+0300\n"
|
||||
"Last-Translator: Alexander Gross <Bikalexander@gmail.com>\n"
|
||||
"Language-Team: Russian <de@li.org>\n"
|
||||
"Language: ru\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
5
socket.c
5
socket.c
@ -37,14 +37,15 @@ cIptvSocket::~cIptvSocket()
|
||||
bool cIptvSocket::OpenSocket(const in_addr_t InetAddr, const int Port, const bool isUdp)
|
||||
{
|
||||
debug("cIptvSocket::OpenSocket()\n");
|
||||
if (inetAddr != InetAddr)
|
||||
inetAddr = InetAddr;
|
||||
// If socket is there already and it is bound to a different port, it must
|
||||
// be closed first
|
||||
if (Port != socketPort) {
|
||||
debug("cIptvSocket::OpenSocket(): Socket tear-down\n");
|
||||
CloseSocket();
|
||||
}
|
||||
// inetAddr must be set after CloseSocket()
|
||||
if (inetAddr != InetAddr)
|
||||
inetAddr = InetAddr;
|
||||
// Bind to the socket if it is not active already
|
||||
if (socketDesc < 0) {
|
||||
int yes = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user