aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-03 19:42:54 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-03 19:42:54 +0000
commit405ad9e58bbb1be771d777f00b253e03061f6b2e (patch)
tree30737ecec65435621fc12eca129c2e2b6d1719c3 /src/main.c
parent16335ba0976077e2fbc326afe66cc50efe622b6b (diff)
downloadmpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.tar.gz
mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.tar.xz
mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.zip
now one can specify multiple bind_to_addresses
git-svn-id: https://svn.musicpd.org/mpd/trunk@2501 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/main.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 2160a1ccd..bb1146cb0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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();