now one can specify multiple bind_to_addresses
git-svn-id: https://svn.musicpd.org/mpd/trunk@2501 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -226,12 +226,7 @@ void establishListen(Options * options) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if(options->createDB <= 0 && !options->updateDB &&
|
||||
(listenSocket = establish(port))<0)
|
||||
{
|
||||
ERROR("error binding port\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if(options->createDB <= 0 && !options->updateDB) establish(port);
|
||||
}
|
||||
|
||||
void changeToUser(Options * options) {
|
||||
@@ -453,7 +448,7 @@ int main(int argc, char * argv[]) {
|
||||
playerKill();
|
||||
|
||||
freeAllInterfaces();
|
||||
close(listenSocket);
|
||||
closeAllListenSockets();
|
||||
closeMp3Directory();
|
||||
closeTables();
|
||||
finishPlaylist();
|
||||
|
||||
Reference in New Issue
Block a user